fix edition 2024 lints

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-02-25 18:38:12 +00:00 committed by June Clementine Strawberry
parent cbf207bd1f
commit a67ab75417
36 changed files with 60 additions and 72 deletions

View file

@ -62,7 +62,7 @@ pub(super) async fn process(command: AdminCommand, context: &Command<'_>) -> Res
| Debug(command) => debug::process(command, context).await?,
| Query(command) => query::process(command, context).await?,
| Check(command) => check::process(command, context).await?,
};
}
Ok(())
}

View file

@ -42,7 +42,7 @@ pub(super) async fn list_rooms(
if rooms.is_empty() {
return Ok(RoomMessageEventContent::text_plain("No more rooms."));
};
}
let output_plain = format!(
"Rooms ({}):\n```\n{}\n```",

View file

@ -67,7 +67,7 @@ pub(super) async fn reprocess(
if rooms.is_empty() {
return Ok(RoomMessageEventContent::text_plain("No more rooms."));
};
}
let output = format!(
"Rooms (page {page}):\n```\n{}\n```",

View file

@ -166,7 +166,7 @@ pub(super) async fn create_user(
"Failed to automatically join room {room} for user {user_id}: {e}"
);
},
};
}
}
}
}
@ -550,7 +550,7 @@ pub(super) async fn force_join_list_of_local_users(
debug_warn!("Failed force joining {user_id} to {room_id} during bulk join: {e}");
failed_joins = failed_joins.saturating_add(1);
},
};
}
}
Ok(RoomMessageEventContent::notice_markdown(format!(
@ -646,7 +646,7 @@ pub(super) async fn force_join_all_local_users(
debug_warn!("Failed force joining {user_id} to {room_id} during bulk join: {e}");
failed_joins = failed_joins.saturating_add(1);
},
};
}
}
Ok(RoomMessageEventContent::notice_markdown(format!(