mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 10:53:35 +01:00
Tools: satisfy clippy's simplified boolean check
This commit is contained in:
1 parent
03d5c0c991
commit
360f591f37
1 file changed
+1
-1
@@ -343,7 +343,7 @@ impl BuilderMap {
|
||||
drawn.nearest(mid).filter(|n| n.4 <= snap)?;
|
||||
// A run that cannot be cut out, or that is all of the path (such as a lone line), leaves
|
||||
// nothing to split off.
|
||||
if !po::cut_out(drawn, &run, false, snap).is_some_and(|rest| !rest.is_empty()) {
|
||||
if po::cut_out(drawn, &run, false, snap).is_none_or(|rest| rest.is_empty()) {
|
||||
return None;
|
||||
}
|
||||
Some((i, run))
|
||||
|
||||
Reference in new issue
Block a user