mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
style: Fix clippy
This commit is contained in:
@@ -102,7 +102,7 @@ pub(super) async fn purge_sync_tokens(&self, room: OwnedRoomOrAliasId) -> Result
|
|||||||
|
|
||||||
/// Target options for room purging
|
/// Target options for room purging
|
||||||
#[derive(Default, Debug, clap::ValueEnum, Clone)]
|
#[derive(Default, Debug, clap::ValueEnum, Clone)]
|
||||||
pub(crate) enum RoomTargetOption {
|
pub enum RoomTargetOption {
|
||||||
#[default]
|
#[default]
|
||||||
/// Target all rooms
|
/// Target all rooms
|
||||||
All,
|
All,
|
||||||
@@ -180,7 +180,7 @@ pub(super) async fn purge_all_sync_tokens(
|
|||||||
total_rooms_checked = total_rooms_checked.saturating_add(1);
|
total_rooms_checked = total_rooms_checked.saturating_add(1);
|
||||||
|
|
||||||
// Log progress periodically
|
// 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!(
|
info!(
|
||||||
"Progress: {}/{} rooms checked, {} tokens {}",
|
"Progress: {}/{} rooms checked, {} tokens {}",
|
||||||
total_rooms_checked,
|
total_rooms_checked,
|
||||||
|
|||||||
Reference in New Issue
Block a user