clippy::let_underscore_drop

This commit is contained in:
gwenn
2022-01-05 19:26:06 +01:00
committed by Thom Chiovoloni
parent 01c4be82c8
commit 48975e015f
5 changed files with 10 additions and 10 deletions

View File

@@ -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

View File

@@ -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)) => {