WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ed7ee7b

Browse files
committed
Fix clippy lint
1 parent ccbda1a commit ed7ee7b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fuzz/fuzz_targets/fuzz.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,9 @@ impl<const D: usize> Workload<D> {
415415
if let Some(max_shapes) = env::var("MAX_SHAPES")
416416
.ok()
417417
.map(|s| usize::from_str(&s).expect("MAX_SHAPES"))
418-
{
419-
if !self.mutations.is_empty() || self.shapes.len() > max_shapes {
418+
&& (!self.mutations.is_empty() || self.shapes.len() > max_shapes) {
420419
return;
421420
}
422-
}
423421

424422
let mut bvh = Bvh::build(&mut self.shapes);
425423

0 commit comments

Comments
 (0)