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

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