chore: Fix more complicated clippy warnings

This commit is contained in:
Jade Ellis
2025-05-22 13:49:22 +01:00
parent 3494e528ba
commit 4e6e64a238
3 changed files with 53 additions and 41 deletions
+5 -10
View File
@@ -5,6 +5,7 @@ mod info;
mod moderation;
use clap::Subcommand;
use commands::RoomTargetOption;
use conduwuit::Result;
use ruma::{OwnedRoomId, OwnedRoomOrAliasId};
@@ -70,21 +71,15 @@ pub enum RoomCommand {
/// - Delete sync tokens for all rooms that have no local users
///
/// By default, processes all empty rooms. You can use --target-disabled
/// and/or --target-banned to exclusively process rooms matching those
/// conditions.
/// By default, processes all empty rooms.
PurgeEmptyRoomTokens {
/// Confirm you want to delete tokens from potentially many rooms
#[arg(long)]
yes: bool,
/// Only purge rooms that have federation disabled
#[arg(long)]
target_disabled: bool,
/// Only purge rooms that have been banned
#[arg(long)]
target_banned: bool,
/// Target specific room types
#[arg(long, value_enum)]
target_option: Option<RoomTargetOption>,
/// Perform a dry run without actually deleting any tokens
#[arg(long)]