Activate some warnings
This commit is contained in:
parent
b763fb62de
commit
d95ef928af
2 changed files with 12 additions and 1 deletions
11
src/lib.rs
11
src/lib.rs
|
|
@ -1,3 +1,14 @@
|
|||
#![forbid(unsafe_code)]
|
||||
// Rustc lint groups
|
||||
#![warn(future_incompatible)]
|
||||
#![warn(rust_2018_idioms)]
|
||||
#![warn(unused)]
|
||||
// Rustc lints
|
||||
#![warn(noop_method_call)]
|
||||
#![warn(single_use_lifetimes)]
|
||||
// Clippy lints
|
||||
#![warn(clippy::use_self)]
|
||||
|
||||
#[cfg(feature = "tokio")]
|
||||
pub mod tokio;
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ pub type Result<R> = result::Result<R, Error>;
|
|||
///
|
||||
/// The migration does not need to update the `user_version` or commit the
|
||||
/// transaction.
|
||||
pub type Migration = fn(&mut Transaction, usize) -> rusqlite::Result<()>;
|
||||
pub type Migration = fn(&mut Transaction<'_>, usize) -> rusqlite::Result<()>;
|
||||
|
||||
fn migrate(conn: &mut Connection, migrations: &[Migration]) -> rusqlite::Result<()> {
|
||||
let mut tx = conn.transaction()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue