about summary refs log tree commit diff
path: root/library/stdarch/crates/assert-instr-macro
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/assert-instr-macro')
-rw-r--r--library/stdarch/crates/assert-instr-macro/src/lib.rs2
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();