Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Mar 5, 2021
1 parent d699f14 commit 2a612f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion diesel/src/sqlite/connection/statement_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down
2 changes: 1 addition & 1 deletion diesel/src/sqlite/connection/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2a612f0

Please sign in to comment.