Clippy + rust fmt

This commit is contained in:
gwenn
2020-02-22 11:50:00 +01:00
parent 0acdb19a38
commit 15fc3b4b71
3 changed files with 54 additions and 55 deletions

View File

@@ -749,6 +749,10 @@ impl Connection {
///
/// The underlying SQLite database connection handle will not be closed when
/// the returned connection is dropped/closed.
///
/// # Safety
///
/// This function is unsafe because improper use may impact the Connection.
pub unsafe fn from_handle(db: *mut ffi::sqlite3) -> Result<Connection> {
let db_path = db_filename(db);
let db = InnerConnection::new(db, false);