From e2d2a689f8985f44efe96315ecf963dee13d9784 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Wed, 8 Feb 2017 19:38:50 -0500 Subject: [PATCH] Minor cleanup from rustfmt pass --- src/lib.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 63b5372..0211e7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -422,11 +422,8 @@ impl Connection { /// Will return `Err` if the underlying SQLite call fails. pub fn close(self) -> std::result::Result<(), (Connection, Error)> { self.flush_prepared_statement_cache(); - { - let mut db = self.db.borrow_mut(); - db.close() - } - .map_err(move |err| (self, err)) + let r = self.db.borrow_mut().close(); + r.map_err(move |err| (self, err)) } /// Enable loading of SQLite extensions. Strongly consider using `LoadExtensionGuard`