From 84064daa9dfa5895287fb08c1671ec308d2b134b Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Tue, 26 May 2020 20:05:39 +0200 Subject: [PATCH] Run rustfmt --- src/connection.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/connection.rs b/src/connection.rs index 4e4f176..0e6666d 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -32,20 +32,21 @@ impl Connection { path_to_cstr!(path.as_ref()).as_ptr(), &mut raw, flags.0, - 0 as *const _ ); + 0 as *const _, + ); // Explicitly close the connection on error. // This is a quirk of the C API, where the database handle // (raw) is unconditionally allocated. match ret { - ffi::SQLITE_OK => {}, + ffi::SQLITE_OK => {} code => { ffi::sqlite3_close(raw); return Err(::Error { code: Some(code as isize), - message: None + message: None, }); - }, + } } } Ok(Connection {