summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2025-07-15 13:23:09 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-07-15 14:56:58 +0200
commite6ef7481d81c35c8d73e3c0bd8b5e77cc9ea1d63 (patch)
tree54e996c4ebe4fd00d61e00561673fe5d494aa078
parentebe328d1724a63c6d93df2155195ba7c5558fde2 (diff)
downloadmullvadvpn-e6ef7481d81c35c8d73e3c0bd8b5e77cc9ea1d63.tar.xz
mullvadvpn-e6ef7481d81c35c8d73e3c0bd8b5e77cc9ea1d63.zip
Run `cargo fmt`
-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(())
}