Skip to content

Commit

Permalink
Fixed clippy lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Helfet committed Jul 6, 2024
1 parent 21dd0d4 commit cf1bb17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rusqlite_migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,12 @@ impl<'m> Migrations<'m> {
}

/// Maximum version defined in the migration set
#[allow(clippy::missing_panics_doc)]
pub fn max_schema_version(&self) -> SchemaVersion {
match self.ms.len() {
0 => SchemaVersion::NoneSet,
v => SchemaVersion::Inside(
NonZeroUsize::new(v).expect("schema version should not be equal to 0"),
),
NonZeroUsize::new(v).expect("Already checked for 0 in previous match arm")),
}
}

Expand Down

0 comments on commit cf1bb17

Please sign in to comment.