Skip to content

Commit 2a612f0

Browse files
committed
Run cargo fmt
1 parent d699f14 commit 2a612f0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

diesel/src/sqlite/connection/statement_iterator.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ where
9595
}
9696
}
9797
row.map(|row| {
98-
let row = row.into_named(self.column_indices.as_ref().expect("it's there because we populated it above"));
98+
let row = row.into_named(
99+
self.column_indices
100+
.as_ref()
101+
.expect("it's there because we populated it above"),
102+
);
99103
T::build(&row).map_err(DeserializationError)
100104
})
101105
}

diesel/src/sqlite/connection/stmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl Statement {
6565
/// > reprepared by the first call to sqlite3_step() for a particular
6666
/// > run or until the next call to sqlite3_column_name()
6767
/// > or sqlite3_column_name16() on the same column.
68-
///
68+
///
6969
/// https://www.sqlite.org/c3ref/column_name.html
7070
unsafe fn field_name<'a, 'b: 'a>(&'a self, idx: usize) -> Option<&'b CStr> {
7171
let ptr = ffi::sqlite3_column_name(self.inner_statement.as_ptr(), idx as libc::c_int);

0 commit comments

Comments
 (0)