mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Merge pull request #231 from jgallagher/fmt-cleanup
Minor cleanup from rustfmt pass
This commit is contained in:
commit
eb0a320875
@ -422,11 +422,8 @@ impl Connection {
|
|||||||
/// Will return `Err` if the underlying SQLite call fails.
|
/// Will return `Err` if the underlying SQLite call fails.
|
||||||
pub fn close(self) -> std::result::Result<(), (Connection, Error)> {
|
pub fn close(self) -> std::result::Result<(), (Connection, Error)> {
|
||||||
self.flush_prepared_statement_cache();
|
self.flush_prepared_statement_cache();
|
||||||
{
|
let r = self.db.borrow_mut().close();
|
||||||
let mut db = self.db.borrow_mut();
|
r.map_err(move |err| (self, err))
|
||||||
db.close()
|
|
||||||
}
|
|
||||||
.map_err(move |err| (self, err))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Enable loading of SQLite extensions. Strongly consider using `LoadExtensionGuard`
|
/// Enable loading of SQLite extensions. Strongly consider using `LoadExtensionGuard`
|
||||||
|
Loading…
Reference in New Issue
Block a user