diff --git a/src/bin/mdbook-iced.rs b/src/bin/mdbook-iced.rs index 525d3b7..fab26b4 100644 --- a/src/bin/mdbook-iced.rs +++ b/src/bin/mdbook-iced.rs @@ -34,7 +34,7 @@ fn main() -> Result<(), Error> { process::exit(0); } - if let Some(_) = matches.subcommand_matches("clean") { + if matches.subcommand_matches("clean").is_some() { clean(PathBuf::new())?; process::exit(0);