From d939bc5137266288eea7f47d4c5be47182817014 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 8 Nov 2017 10:40:58 -0800 Subject: [PATCH] Use is_empty() instead of comparing len() with 0. --- lib/cretonne/src/verifier/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cretonne/src/verifier/mod.rs b/lib/cretonne/src/verifier/mod.rs index c2753d1335..7d2338c821 100644 --- a/lib/cretonne/src/verifier/mod.rs +++ b/lib/cretonne/src/verifier/mod.rs @@ -991,7 +991,7 @@ impl<'a> Verifier<'a> { self.func.dfg.ctrl_typevar(inst), ) { - if possible_encodings.len() != 0 { + if !possible_encodings.is_empty() { possible_encodings.push_str(", "); multiple_encodings = true; }