From 2a612f078c625fa4c63012ec1f56e68141720229 Mon Sep 17 00:00:00 2001 From: Georg Semmler Date: Fri, 5 Mar 2021 11:06:03 +0100 Subject: [PATCH] Run cargo fmt --- diesel/src/sqlite/connection/statement_iterator.rs | 6 +++++- diesel/src/sqlite/connection/stmt.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/diesel/src/sqlite/connection/statement_iterator.rs b/diesel/src/sqlite/connection/statement_iterator.rs index dfa91da99445..0073a679c151 100644 --- a/diesel/src/sqlite/connection/statement_iterator.rs +++ b/diesel/src/sqlite/connection/statement_iterator.rs @@ -95,7 +95,11 @@ where } } row.map(|row| { - let row = row.into_named(self.column_indices.as_ref().expect("it's there because we populated it above")); + let row = row.into_named( + self.column_indices + .as_ref() + .expect("it's there because we populated it above"), + ); T::build(&row).map_err(DeserializationError) }) } diff --git a/diesel/src/sqlite/connection/stmt.rs b/diesel/src/sqlite/connection/stmt.rs index b73ccb8a91f5..206bad766b9a 100644 --- a/diesel/src/sqlite/connection/stmt.rs +++ b/diesel/src/sqlite/connection/stmt.rs @@ -65,7 +65,7 @@ impl Statement { /// > reprepared by the first call to sqlite3_step() for a particular /// > run or until the next call to sqlite3_column_name() /// > or sqlite3_column_name16() on the same column. - /// + /// /// https://www.sqlite.org/c3ref/column_name.html unsafe fn field_name<'a, 'b: 'a>(&'a self, idx: usize) -> Option<&'b CStr> { let ptr = ffi::sqlite3_column_name(self.inner_statement.as_ptr(), idx as libc::c_int);