diff options
| author | gnzlbg <gonzalobg88@gmail.com> | 2019-01-22 18:48:36 +0100 |
|---|---|---|
| committer | gnzlbg <gnzlbg@users.noreply.github.com> | 2019-01-22 19:23:32 +0100 |
| commit | 5f7006df5a945332e4f2a20a88b3ded8ce5c44fa (patch) | |
| tree | def681a6daebbb75d6023d3dae924ee8f7bf876c /library/stdarch/crates/assert-instr-macro/src | |
| parent | 51e7d81a38de12a9cc99c2c67a8a7ea643581bb4 (diff) | |
| download | rust-5f7006df5a945332e4f2a20a88b3ded8ce5c44fa.tar.gz rust-5f7006df5a945332e4f2a20a88b3ded8ce5c44fa.zip | |
Fix clippy issues
Diffstat (limited to 'library/stdarch/crates/assert-instr-macro/src')
| -rw-r--r-- | library/stdarch/crates/assert-instr-macro/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs index eba00e6b2b4..3a6e0dfb9ce 100644 --- a/library/stdarch/crates/assert-instr-macro/src/lib.rs +++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs @@ -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(); |
