diff options
Diffstat (limited to 'mullvad-api/src/lib.rs')
| -rw-r--r-- | mullvad-api/src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mullvad-api/src/lib.rs b/mullvad-api/src/lib.rs index 4ba91a28c6..4acbff321c 100644 --- a/mullvad-api/src/lib.rs +++ b/mullvad-api/src/lib.rs @@ -139,12 +139,11 @@ impl ApiEndpoint { api_addr = env::API_ADDR_VAR, api_host = env::API_HOST_VAR ); - api.address = format!("{}:{}", host, API_PORT_DEFAULT) + api.address = format!("{host}:{API_PORT_DEFAULT}") .to_socket_addrs() .unwrap_or_else(|_| { panic!( - "Unable to resolve API IP address from host {host}:{port}", - port = API_PORT_DEFAULT, + "Unable to resolve API IP address from host {host}:{API_PORT_DEFAULT}" ) }) .next(); @@ -714,7 +713,7 @@ impl ProblemReportProxy { message: &str, log: &str, metadata: &BTreeMap<String, String>, - ) -> impl Future<Output = Result<(), rest::Error>> { + ) -> impl Future<Output = Result<(), rest::Error>> + use<> { #[derive(serde::Serialize)] struct ProblemReport { address: String, |
