mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-21 21:09:23 +08:00
Fix clippy warnings
This commit is contained in:
parent
13dc9df7b0
commit
0f8d1aadc7
@ -1,4 +1,4 @@
|
||||
///! Busy handler (when the database is locked)
|
||||
//! Busy handler (when the database is locked)
|
||||
use std::convert::TryInto;
|
||||
use std::mem;
|
||||
use std::os::raw::{c_int, c_void};
|
||||
|
@ -1162,13 +1162,13 @@ mod test {
|
||||
// this function is never called, but is still type checked; in
|
||||
// particular, calls with specific instantiations will require
|
||||
// that those types are `Send`.
|
||||
#[allow(dead_code, unconditional_recursion)]
|
||||
#[allow(dead_code, unconditional_recursion,clippy::extra_unused_type_parameters)]
|
||||
fn ensure_send<T: Send>() {
|
||||
ensure_send::<Connection>();
|
||||
ensure_send::<InterruptHandle>();
|
||||
}
|
||||
|
||||
#[allow(dead_code, unconditional_recursion)]
|
||||
#[allow(dead_code, unconditional_recursion,clippy::extra_unused_type_parameters)]
|
||||
fn ensure_sync<T: Sync>() {
|
||||
ensure_sync::<InterruptHandle>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user