Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

naming: clippy

bherbruckc6cb3dd1e624
diff --git a/crates/doc/src/naming.rs b/crates/doc/src/naming.rs
index bbf71318b5..72c60881eb 100644
--- a/crates/doc/src/naming.rs
+++ b/crates/doc/src/naming.rs
@@ -269,7 +269,7 @@ fn behind(ps: &[Vec3], ns: &[Vec3], inputs: &[(&ModelBody, FaceIndex, Arc<Vec<St
}
}
}
- votes.sort_by(|a, b| b.1.cmp(&a.1));
+ votes.sort_by_key(|v| std::cmp::Reverse(v.1));
votes.first().filter(|(_, k)| *k * 2 >= ps.len().max(1)).map(|(n, _)| n.clone())
}