fix some clippy warnings, and make them errors for taskchampion-lib

This commit is contained in:
Dustin J. Mitchell
2022-03-07 23:49:37 +00:00
parent fcdcebb1e0
commit a5a8e3b7c8
7 changed files with 14 additions and 22 deletions

View File

@@ -9,7 +9,7 @@ use std::path::PathBuf;
pub fn main() -> anyhow::Result<()> {
let arg = env::args().nth(1);
match arg.as_ref().map(|arg| arg.as_str()) {
match arg.as_deref() {
Some("codegen") => codegen(),
Some(arg) => anyhow::bail!("unknown xtask {}", arg),
_ => anyhow::bail!("unknown xtask"),