mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-01 06:18:54 +08:00
clippy::let_underscore_drop
This commit is contained in:
@@ -44,7 +44,7 @@ use crate::{Connection, Result};
|
||||
pub(crate) const ARRAY_TYPE: *const c_char = b"rarray\0" as *const u8 as *const c_char;
|
||||
|
||||
pub(crate) unsafe extern "C" fn free_array(p: *mut c_void) {
|
||||
let _: Array = Rc::from_raw(p as *const Vec<Value>);
|
||||
drop(Rc::from_raw(p as *const Vec<Value>));
|
||||
}
|
||||
|
||||
/// Array parameter / pointer
|
||||
|
||||
@@ -919,7 +919,7 @@ where
|
||||
let vt = vtab as *mut T;
|
||||
match (*vt).destroy() {
|
||||
Ok(_) => {
|
||||
let _: Box<T> = Box::from_raw(vt);
|
||||
drop(Box::from_raw(vt));
|
||||
ffi::SQLITE_OK
|
||||
}
|
||||
Err(Error::SqliteFailure(err, s)) => {
|
||||
|
||||
Reference in New Issue
Block a user