Tools: satisfy clippy's simplified boolean check

This commit is contained in:
Adam
2026-10-22 21:38:04 +02:00
parent 03d5c0c991
commit 360f591f37
+1 -1
View File
@@ -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))