Skip to content

Commit

Permalink
chore: clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cljoly committed Dec 6, 2024
1 parent 035c5e1 commit fa48067
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rusqlite_migration/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<'u> FromIterator<M<'u>> for MigrationsBuilder<'u> {
}
}

impl<'u> M<'u> {
impl M<'_> {
/// Replace the `up_hook` in the given migration with the provided one.
///
/// # Warning
Expand Down
4 changes: 2 additions & 2 deletions rusqlite_migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub struct M<'u> {
comment: Option<&'u str>,
}

impl<'u> PartialEq for M<'u> {
impl PartialEq for M<'_> {
fn eq(&self, other: &Self) -> bool {
let equal_up_hooks = match (self.up_hook.as_ref(), other.up_hook.as_ref()) {
(None, None) => true,
Expand All @@ -121,7 +121,7 @@ impl<'u> PartialEq for M<'u> {
}
}

impl<'u> Eq for M<'u> {}
impl Eq for M<'_> {}

impl<'u> M<'u> {
/// Create a schema update. The SQL command will be executed only when the migration has not been
Expand Down
2 changes: 1 addition & 1 deletion rusqlite_migration/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl TryFrom<&'static Dir<'static>> for MigrationFile {
}
}

impl<'u> From<&MigrationFile> for M<'u> {
impl From<&MigrationFile> for M<'_> {
fn from(value: &MigrationFile) -> Self {
M::up(value.up)
.comment(value.name)
Expand Down

0 comments on commit fa48067

Please sign in to comment.