Fix clippy issues

This commit is contained in:
gnzlbg
2019-01-22 18:48:36 +01:00
committed by gnzlbg
parent 51e7d81a38
commit 5f7006df5a
14 changed files with 33 additions and 25 deletions

View File

@@ -173,7 +173,7 @@ impl syn::parse::Parse for Invoc {
println!("{:?}", input.cursor().token_stream());
return Err(input.error("expected an instruction"));
}
if instr.len() == 0 {
if instr.is_empty() {
return Err(input.error("expected an instruction before comma"));
}
let mut args = Vec::new();