Clippy fixes

This commit is contained in:
Marc-André Lureau
2021-03-08 01:02:59 +04:00
parent 124d893395
commit b787a2c0bc
3 changed files with 5 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ fn main() {
fn try_main() -> Result<(), DynError> {
let task = env::args().nth(1);
match task.as_ref().map(|it| it.as_str()) {
match task.as_deref() {
Some("codegen") => codegen()?,
_ => print_help(),
}