mirror of
https://github.com/isar/rusqlite.git
synced 2025-04-06 07:17:44 +08:00
Fix clippy warning
This commit is contained in:
parent
997f313a14
commit
9a3930ba70
@ -18,7 +18,7 @@ pub fn SQLITE_STATIC() -> sqlite3_destructor_type {
|
|||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn SQLITE_TRANSIENT() -> sqlite3_destructor_type {
|
pub fn SQLITE_TRANSIENT() -> sqlite3_destructor_type {
|
||||||
Some(unsafe { mem::transmute(-1_isize) })
|
Some(unsafe { mem::transmute::<isize, unsafe extern "C" fn(*mut std::ffi::c_void)>(-1_isize) })
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::all)]
|
#[allow(clippy::all)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user