summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2021-02-11 10:51:30 +0100
committerDavid Lönnhager <david.l@mullvad.net>2021-02-11 10:51:30 +0100
commit0c89aa092497a711bee1abe310eb94b511add058 (patch)
treef68f47f076f6df5010e85d8414866ba0ca5acd7c
parentb4ccb1c0a59c0fc4c71387b5bf58a6933f1b0404 (diff)
downloadmullvadvpn-0c89aa092497a711bee1abe310eb94b511add058.tar.xz
mullvadvpn-0c89aa092497a711bee1abe310eb94b511add058.zip
Fix deprecated panic formatting
-rw-r--r--mullvad-cli/src/cmds/bridge.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mullvad-cli/src/cmds/bridge.rs b/mullvad-cli/src/cmds/bridge.rs
index b6692d0198..d55e08a946 100644
--- a/mullvad-cli/src/cmds/bridge.rs
+++ b/mullvad-cli/src/cmds/bridge.rs
@@ -285,7 +285,7 @@ impl Bridge {
};
let packed_proxy = openvpn::ProxySettings::Local(local_proxy);
if let Err(error) = openvpn::validate_proxy_settings(&packed_proxy) {
- panic!(error);
+ panic!("{}", error);
}
let mut rpc = new_rpc_client().await?;
@@ -324,7 +324,7 @@ impl Bridge {
let packed_proxy = openvpn::ProxySettings::Remote(proxy);
if let Err(error) = openvpn::validate_proxy_settings(&packed_proxy) {
- panic!(error);
+ panic!("{}", error);
}
let mut rpc = new_rpc_client().await?;
@@ -353,7 +353,7 @@ impl Bridge {
let packed_proxy = openvpn::ProxySettings::Shadowsocks(proxy);
if let Err(error) = openvpn::validate_proxy_settings(&packed_proxy) {
- panic!(error);
+ panic!("{}", error);
}
let mut rpc = new_rpc_client().await?;