1
0
Fork 0
forked from wry/wry

all: address clippy lints

This commit is contained in:
Julian Orth 2025-11-28 13:32:02 +01:00
parent 0e49b33a7f
commit 669d995771
7 changed files with 10 additions and 31 deletions

View file

@ -9,9 +9,10 @@ use {
std::{cell::Cell, rc::Rc},
};
#[derive(Subcommand, Debug)]
#[derive(Subcommand, Debug, Default)]
pub enum IdleCmd {
/// Print the idle status.
#[default]
Status,
/// Set the idle interval.
Set(IdleSetArgs),
@ -19,12 +20,6 @@ pub enum IdleCmd {
SetGracePeriod(IdleSetGracePeriodArgs),
}
impl Default for IdleCmd {
fn default() -> Self {
Self::Status
}
}
#[derive(Args, Debug)]
pub struct IdleSetArgs {
/// The interval of inactivity after which to disable the screens.