Skip to content

Commit cc1444d

Browse files
committed
Use is_empty instead of comparison to 0
Clippy emits: warning: length comparison to zero As suggested use `is_empty`.
1 parent 0421dfd commit cc1444d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/policy/compiler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ where
10081008
for k in ret.keys() {
10091009
debug_assert_eq!(k.dissat_prob, ord_dissat_prob);
10101010
}
1011-
if ret.len() == 0 {
1011+
if ret.is_empty() {
10121012
// The only reason we are discarding elements out of compiler is because
10131013
// compilations exceeded consensus and standardness limits or are non-malleable.
10141014
// If there no possible compilations for any policies regardless of dissat

0 commit comments

Comments
 (0)