style: Fix clippy

This commit is contained in:
Jade Ellis
2026-04-09 15:37:39 +01:00
parent ad6f6079e7
commit 8e65da6723
+2 -2
View File
@@ -102,7 +102,7 @@ pub(super) async fn purge_sync_tokens(&self, room: OwnedRoomOrAliasId) -> Result
/// Target options for room purging
#[derive(Default, Debug, clap::ValueEnum, Clone)]
pub(crate) enum RoomTargetOption {
pub enum RoomTargetOption {
#[default]
/// Target all rooms
All,
@@ -180,7 +180,7 @@ pub(super) async fn purge_all_sync_tokens(
total_rooms_checked = total_rooms_checked.saturating_add(1);
// Log progress periodically
if total_rooms_checked % 100 == 0 || total_rooms_checked == total_rooms {
if total_rooms_checked.is_multiple_of(100) || total_rooms_checked == total_rooms {
info!(
"Progress: {}/{} rooms checked, {} tokens {}",
total_rooms_checked,