summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-daemon/src/lib.rs12
-rw-r--r--mullvad-daemon/src/migrations/v6.rs13
2 files changed, 12 insertions, 13 deletions
diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs
index 533018e540..9cdb61e942 100644
--- a/mullvad-daemon/src/lib.rs
+++ b/mullvad-daemon/src/lib.rs
@@ -2841,12 +2841,12 @@ impl Daemon {
.account_manager
.set_rotation_interval(interval.unwrap_or_default())
.await
- {
- log::error!(
- "{}",
- error.display_chain_with_msg("Failed to update rotation interval")
- );
- }
+ {
+ log::error!(
+ "{}",
+ error.display_chain_with_msg("Failed to update rotation interval")
+ );
+ }
}
Err(e) => {
log::error!("{}", e.display_chain_with_msg("Unable to save settings"));
diff --git a/mullvad-daemon/src/migrations/v6.rs b/mullvad-daemon/src/migrations/v6.rs
index 6f63a8fc77..490558ce57 100644
--- a/mullvad-daemon/src/migrations/v6.rs
+++ b/mullvad-daemon/src/migrations/v6.rs
@@ -91,14 +91,13 @@ fn migrate_pq_setting(settings: &mut serde_json::Value) -> Result<()> {
.as_object_mut()
.ok_or(Error::InvalidSettingsContent)?
.remove("use_pq_safe_psk")
- {
- if let Some(true) = psk_setting.as_bool() {
- tunnel_options["quantum_resistant"] = serde_json::json!(QuantumResistantState::On);
- } else {
- tunnel_options["quantum_resistant"] =
- serde_json::json!(QuantumResistantState::Auto);
- }
+ {
+ if let Some(true) = psk_setting.as_bool() {
+ tunnel_options["quantum_resistant"] = serde_json::json!(QuantumResistantState::On);
+ } else {
+ tunnel_options["quantum_resistant"] = serde_json::json!(QuantumResistantState::Auto);
}
+ }
Ok(())
}