Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 7, 2023
1 parent e0a4ba3 commit 4e387e6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/committed/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ fn resolve_bool_arg(yes: bool, no: bool) -> Option<bool> {
}

#[derive(Debug, Copy, Clone, PartialEq, Eq, clap::ValueEnum)]
#[derive(Default)]
enum Format {
Silent,
#[default]
Brief,
Json,
}
Expand All @@ -115,11 +117,7 @@ impl Format {
}
}

impl Default for Format {
fn default() -> Self {
Format::Brief
}
}


fn load_toml(path: &std::path::Path) -> Result<config::Config, anyhow::Error> {
let mut f = fs::File::open(path)?;
Expand Down

0 comments on commit 4e387e6

Please sign in to comment.