Skip to content

Commit

Permalink
Make Migrations::new const
Browse files Browse the repository at this point in the history
That can be made a const without breaking compatibility, good to add
this option.
  • Loading branch information
MonterraByte authored and cljoly committed Nov 10, 2024
1 parent ee4748b commit 035c5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rusqlite_migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl<'m> Migrations<'m> {
/// ]);
/// ```
#[must_use]
pub fn new(ms: Vec<M<'m>>) -> Self {
pub const fn new(ms: Vec<M<'m>>) -> Self {
Self { ms }
}

Expand Down

0 comments on commit 035c5e1

Please sign in to comment.