From e6884ef13a74167e2d0c71b8726d1d9b18bc6aad Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 28 Jul 2024 01:03:08 +0000 Subject: [PATCH] fix various nightly incidental lints Signed-off-by: Jason Volk --- Cargo.toml | 2 +- src/core/pdu/mod.rs | 2 +- src/service/resolver/actual.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 82163b31..d2d7dc2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -801,7 +801,7 @@ perf = { level = "warn", priority = -1 } ################### #restriction = "warn" -allow_attributes = "warn" +#allow_attributes = "warn" # UNSTABLE arithmetic_side_effects = "warn" as_conversions = "warn" as_underscore = "warn" diff --git a/src/core/pdu/mod.rs b/src/core/pdu/mod.rs index 32ec19c6..c7c2acf5 100644 --- a/src/core/pdu/mod.rs +++ b/src/core/pdu/mod.rs @@ -119,7 +119,7 @@ impl PduEvent { // deliberately allowing for the possibility of negative age let now: i128 = MilliSecondsSinceUnixEpoch::now().get().into(); let then: i128 = self.origin_server_ts.into(); - let this_age: i128 = now.saturating_sub(then); + let this_age = now.saturating_sub(then); unsigned.insert("age".to_owned(), to_raw_value(&this_age).unwrap()); self.unsigned = Some(to_raw_value(&unsigned).expect("unsigned is valid")); diff --git a/src/service/resolver/actual.rs b/src/service/resolver/actual.rs index 4d5c132f..d940c514 100644 --- a/src/service/resolver/actual.rs +++ b/src/service/resolver/actual.rs @@ -189,7 +189,7 @@ impl super::Service { .services .client .well_known - .get(&format!("https://{dest}/.well-known/matrix/server")) + .get(format!("https://{dest}/.well-known/matrix/server")) .send() .await;