mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
format
This commit is contained in:
parent
1309c563c7
commit
d4f8242d0c
@ -53,13 +53,13 @@
|
||||
//! }
|
||||
//! ```
|
||||
use std::any::Any;
|
||||
use std::marker::PhantomData;
|
||||
use std::ops::Deref;
|
||||
use std::os::raw::{c_int, c_void};
|
||||
use std::panic::{catch_unwind, RefUnwindSafe, UnwindSafe};
|
||||
use std::ptr;
|
||||
use std::slice;
|
||||
use std::sync::Arc;
|
||||
use std::marker::PhantomData;
|
||||
use std::ops::Deref;
|
||||
|
||||
use crate::ffi;
|
||||
use crate::ffi::sqlite3_context;
|
||||
@ -223,7 +223,6 @@ impl Context<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Get the db connection handle via sqlite3_context_db_handle
|
||||
/// https://www.sqlite.org/c3ref/context_db_handle.html
|
||||
///
|
||||
@ -234,7 +233,7 @@ impl Context<'_> {
|
||||
let handle = ffi::sqlite3_context_db_handle(self.ctx);
|
||||
Ok(ConnectionRef {
|
||||
conn: Connection::from_handle(handle)?,
|
||||
phantom: PhantomData
|
||||
phantom: PhantomData,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -256,9 +255,6 @@ impl Deref for ConnectionRef<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
type AuxInner = Arc<dyn Any + Send + Sync + 'static>;
|
||||
|
||||
/// `feature = "functions"` Aggregate is the callback interface for user-defined
|
||||
|
Loading…
Reference in New Issue
Block a user