clippy::must_use_candidate

This commit is contained in:
gwenn
2022-01-05 19:40:31 +01:00
committed by Thom Chiovoloni
parent bcfe99578b
commit 406ac6a7fc
12 changed files with 36 additions and 0 deletions

View File

@@ -12,10 +12,12 @@ use std::mem;
mod error;
#[must_use]
pub fn SQLITE_STATIC() -> sqlite3_destructor_type {
None
}
#[must_use]
pub fn SQLITE_TRANSIENT() -> sqlite3_destructor_type {
Some(unsafe { mem::transmute(-1isize) })
}