Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ptxmac committed Oct 18, 2023
1 parent 0b9e368 commit 3616425
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ mod values;
#[cfg(test)]
mod duct_mock;

use std::io::ErrorKind::NotFound;
use clap::{Arg, Command as ClapCommand};
use std::io::ErrorKind::NotFound;

use std::path::PathBuf;

Expand Down Expand Up @@ -146,10 +146,12 @@ fn main() {
Ok(conf) => conf,
Err(e) => {
match e {
ClickError::Io(e) => if e.kind() == NotFound {
// Silently ignore missing click config
ClickError::Io(e) => {
if e.kind() == NotFound {
// Silently ignore missing click config
}
}
_ => println!("Could not load click config: {e}\nUsing default values.")
_ => println!("Could not load click config: {e}\nUsing default values."),
};
ClickConfig::default()
}
Expand Down

0 comments on commit 3616425

Please sign in to comment.