mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: Clippy fixes
This commit is contained in:
@@ -155,7 +155,7 @@ pub(crate) async fn create_invite_route(
|
||||
|
||||
if let Err(e) = services
|
||||
.antispam
|
||||
.user_may_invite(sender_user.to_owned(), recipient_user.clone(), body.room_id.clone())
|
||||
.user_may_invite(sender_user.clone(), recipient_user.clone(), body.room_id.clone())
|
||||
.await
|
||||
{
|
||||
warn!("Antispam rejected invite: {e:?}");
|
||||
|
||||
@@ -56,7 +56,7 @@ pub(crate) async fn get_server_keys_route(
|
||||
}
|
||||
|
||||
fn valid_until_ts() -> MilliSecondsSinceUnixEpoch {
|
||||
let dur = Duration::from_secs(86400 * 7);
|
||||
let dur = Duration::from_hours(168);
|
||||
let timepoint = timepoint_from_now(dur).expect("SystemTime should not overflow");
|
||||
MilliSecondsSinceUnixEpoch::from_system_time(timepoint).expect("UInt should not overflow")
|
||||
}
|
||||
|
||||
@@ -744,7 +744,7 @@ async fn handle_edu_direct_to_device_event(
|
||||
ev_type,
|
||||
event.clone(),
|
||||
)
|
||||
.await
|
||||
.await;
|
||||
})
|
||||
.await;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user