fix various nightly incidental lints
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
49033db2b8
commit
e6884ef13a
3 changed files with 3 additions and 3 deletions
|
@ -801,7 +801,7 @@ perf = { level = "warn", priority = -1 }
|
||||||
###################
|
###################
|
||||||
#restriction = "warn"
|
#restriction = "warn"
|
||||||
|
|
||||||
allow_attributes = "warn"
|
#allow_attributes = "warn" # UNSTABLE
|
||||||
arithmetic_side_effects = "warn"
|
arithmetic_side_effects = "warn"
|
||||||
as_conversions = "warn"
|
as_conversions = "warn"
|
||||||
as_underscore = "warn"
|
as_underscore = "warn"
|
||||||
|
|
|
@ -119,7 +119,7 @@ impl PduEvent {
|
||||||
// deliberately allowing for the possibility of negative age
|
// deliberately allowing for the possibility of negative age
|
||||||
let now: i128 = MilliSecondsSinceUnixEpoch::now().get().into();
|
let now: i128 = MilliSecondsSinceUnixEpoch::now().get().into();
|
||||||
let then: i128 = self.origin_server_ts.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());
|
unsigned.insert("age".to_owned(), to_raw_value(&this_age).unwrap());
|
||||||
self.unsigned = Some(to_raw_value(&unsigned).expect("unsigned is valid"));
|
self.unsigned = Some(to_raw_value(&unsigned).expect("unsigned is valid"));
|
||||||
|
|
|
@ -189,7 +189,7 @@ impl super::Service {
|
||||||
.services
|
.services
|
||||||
.client
|
.client
|
||||||
.well_known
|
.well_known
|
||||||
.get(&format!("https://{dest}/.well-known/matrix/server"))
|
.get(format!("https://{dest}/.well-known/matrix/server"))
|
||||||
.send()
|
.send()
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue