refactor: clean up clippy warnings

This commit is contained in:
izzy
2025-06-07 17:50:11 +01:00
parent 911ffc767e
commit 8cc4bbea4d
22 changed files with 37 additions and 47 deletions

View File

@@ -84,7 +84,8 @@ pub async fn message_send(
// Create model user / members
let model_user = user
.clone()
.into_known_static(revolt_presence::is_online(&user.id).await).await;
.into_known_static(revolt_presence::is_online(&user.id).await)
.await;
let model_member: Option<v0::Member> = query
.member_ref()
@@ -491,7 +492,7 @@ mod test {
let (_, _, other_user) = harness.new_user().await;
let (server, _) = harness.new_server(&user).await;
let channel = harness.new_channel(&server).await;
let (role_id, mut role) = harness
let (role_id, _role) = harness
.new_role(
&server,
1,

View File

@@ -41,7 +41,7 @@ pub async fn call(
// - If not, create it.
let client = reqwest::Client::new();
let result = client
.get(&format!(
.get(format!(
"{}/room/{}",
config.hosts.voso_legacy,
channel.id()
@@ -59,7 +59,7 @@ pub async fn call(
reqwest::StatusCode::OK => (),
reqwest::StatusCode::NOT_FOUND => {
if (client
.post(&format!(
.post(format!(
"{}/room/{}",
config.hosts.voso_legacy,
channel.id()
@@ -81,7 +81,7 @@ pub async fn call(
// Then create a user for the room.
if let Ok(response) = client
.post(&format!(
.post(format!(
"{}/room/{}/user/{}",
config.hosts.voso_legacy,
channel.id(),