Skip to content

Commit 436f2ca

Browse files
committedFeb 28, 2024
Tweak migrations template fn versions_matches
Make it not take a mut ref to the json value
1 parent 33347e0 commit 436f2ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎mullvad-daemon/src/migrations/vX.rs.template

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn migrate(settings: &mut serde_json::Value) -> Result<()> {
2626
Ok(())
2727
}
2828

29-
fn version_matches(settings: &mut serde_json::Value) -> bool {
29+
fn version_matches(settings: &serde_json::Value) -> bool {
3030
settings
3131
.get("settings_version")
3232
// TODO
@@ -37,7 +37,6 @@ fn version_matches(settings: &mut serde_json::Value) -> bool {
3737
#[cfg(test)]
3838
mod test {
3939
use super::{migrate, version_matches};
40-
use serde_json;
4140

4241
// TODO: Implement tests. Look at other migration modules for inspiration.
4342
}

0 commit comments

Comments
 (0)