summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api/src/lib.rs
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2025-07-09 12:51:42 +0200
committerLinus Färnstrand <linus@mullvad.net>2025-07-09 12:51:42 +0200
commitbef9cb8441e1369865ff345550ebb9c528dd3aca (patch)
treefcac2cea9e6f7c6e270bedbdc5a81b0c0096f555 /mullvad-api/src/lib.rs
parentb21c24e98078145b19b6fc0eb75163e4b4364253 (diff)
parent485d6b1b81ddf9a038dc93c4ed0f000d9aff107b (diff)
downloadmullvadvpn-bef9cb8441e1369865ff345550ebb9c528dd3aca.tar.xz
mullvadvpn-bef9cb8441e1369865ff345550ebb9c528dd3aca.zip
Merge branch 'fix-rust-warnings-prepare-1.88'
Diffstat (limited to 'mullvad-api/src/lib.rs')
-rw-r--r--mullvad-api/src/lib.rs7
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,