all: address clippy lints
This commit is contained in:
parent
0e49b33a7f
commit
669d995771
7 changed files with 10 additions and 31 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue