diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2023-11-13 13:00:57 +0100 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2023-11-13 14:25:50 +0100 |
| commit | 1a6f35aff23e7affe6ada0e80220ddc854d4a320 (patch) | |
| tree | cf805f7b2c680855c3cefb07fd5cacb05b79f118 | |
| parent | 441d75479bfa9f4c2779624fa3bf2b05ac9e7853 (diff) | |
| download | mullvadvpn-1a6f35aff23e7affe6ada0e80220ddc854d4a320.tar.xz mullvadvpn-1a6f35aff23e7affe6ada0e80220ddc854d4a320.zip | |
Remove unnecessary `mut`
| -rw-r--r-- | mullvad-daemon/src/migrations/v1.rs | 4 | ||||
| -rw-r--r-- | mullvad-daemon/src/migrations/v2.rs | 2 | ||||
| -rw-r--r-- | mullvad-daemon/src/migrations/v3.rs | 2 | ||||
| -rw-r--r-- | mullvad-daemon/src/migrations/v4.rs | 2 | ||||
| -rw-r--r-- | mullvad-daemon/src/migrations/v5.rs | 2 | ||||
| -rw-r--r-- | mullvad-daemon/src/migrations/v6.rs | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/mullvad-daemon/src/migrations/v1.rs b/mullvad-daemon/src/migrations/v1.rs index 9c18e390b4..c3013c7b28 100644 --- a/mullvad-daemon/src/migrations/v1.rs +++ b/mullvad-daemon/src/migrations/v1.rs @@ -205,7 +205,7 @@ mod test { fn test_v1_migration() { let mut old_settings = serde_json::from_str(V1_SETTINGS).unwrap(); - assert!(version_matches(&mut old_settings)); + assert!(version_matches(&old_settings)); migrate(&mut old_settings).unwrap(); let new_settings: serde_json::Value = serde_json::from_str(V2_SETTINGS).unwrap(); @@ -217,7 +217,7 @@ mod test { fn test_v1_2019v3_migration() { let mut old_settings = serde_json::from_str(V1_SETTINGS_2019V3).unwrap(); - assert!(version_matches(&mut old_settings)); + assert!(version_matches(&old_settings)); migrate(&mut old_settings).unwrap(); let new_settings: serde_json::Value = serde_json::from_str(V2_SETTINGS).unwrap(); diff --git a/mullvad-daemon/src/migrations/v2.rs b/mullvad-daemon/src/migrations/v2.rs index 2917abb6dc..0ea4cdce9f 100644 --- a/mullvad-daemon/src/migrations/v2.rs +++ b/mullvad-daemon/src/migrations/v2.rs @@ -181,7 +181,7 @@ mod test { fn test_v2_migration() { let mut old_settings = serde_json::from_str(V2_SETTINGS).unwrap(); - assert!(version_matches(&mut old_settings)); + assert!(version_matches(&old_settings)); migrate(&mut old_settings).unwrap(); let new_settings: serde_json::Value = serde_json::from_str(V3_SETTINGS).unwrap(); diff --git a/mullvad-daemon/src/migrations/v3.rs b/mullvad-daemon/src/migrations/v3.rs index 78ee01dab6..f59bc57b98 100644 --- a/mullvad-daemon/src/migrations/v3.rs +++ b/mullvad-daemon/src/migrations/v3.rs @@ -219,7 +219,7 @@ mod test { fn test_v3_migration() { let mut old_settings = serde_json::from_str(V3_SETTINGS).unwrap(); - assert!(version_matches(&mut old_settings)); + assert!(version_matches(&old_settings)); migrate(&mut old_settings).unwrap(); let new_settings: serde_json::Value = serde_json::from_str(V4_SETTINGS).unwrap(); diff --git a/mullvad-daemon/src/migrations/v4.rs b/mullvad-daemon/src/migrations/v4.rs index 82d238ae19..cd11056d4a 100644 --- a/mullvad-daemon/src/migrations/v4.rs +++ b/mullvad-daemon/src/migrations/v4.rs @@ -287,7 +287,7 @@ mod test { fn test_v4_migration() { let mut old_settings = serde_json::from_str(V4_SETTINGS).unwrap(); - assert!(version_matches(&mut old_settings)); + assert!(version_matches(&old_settings)); migrate(&mut old_settings).unwrap(); let new_settings: serde_json::Value = serde_json::from_str(V5_SETTINGS).unwrap(); diff --git a/mullvad-daemon/src/migrations/v5.rs b/mullvad-daemon/src/migrations/v5.rs index c615927422..351b427a85 100644 --- a/mullvad-daemon/src/migrations/v5.rs +++ b/mullvad-daemon/src/migrations/v5.rs @@ -335,7 +335,7 @@ mod test { async fn test_v5_to_v6_migration() { let mut old_settings = serde_json::from_str(V5_SETTINGS).unwrap(); - assert!(version_matches(&mut old_settings)); + assert!(version_matches(&old_settings)); migrate(&mut old_settings).unwrap(); let new_settings: serde_json::Value = serde_json::from_str(V6_SETTINGS).unwrap(); diff --git a/mullvad-daemon/src/migrations/v6.rs b/mullvad-daemon/src/migrations/v6.rs index 3bceac9252..ff71dbce63 100644 --- a/mullvad-daemon/src/migrations/v6.rs +++ b/mullvad-daemon/src/migrations/v6.rs @@ -291,7 +291,7 @@ mod test { fn test_v6_to_v7_migration() { let mut old_settings = serde_json::from_str(V6_SETTINGS).unwrap(); - assert!(version_matches(&mut old_settings)); + assert!(version_matches(&old_settings)); migrate(&mut old_settings).unwrap(); let new_settings: serde_json::Value = serde_json::from_str(V7_SETTINGS).unwrap(); |
