Clippy: assign operators in the path sweep, isocurve grid and centre of mass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
1 parent
dea1f46266
commit
4126ae5a75
3 files changed
+4
-4
No files matched your search
@@ -313,7 +313,7 @@ fn center_of_mass(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
continue;
|
||||
}
|
||||
vol += m.volume;
|
||||
moment = moment + m.centroid * m.volume;
|
||||
moment += m.centroid * m.volume;
|
||||
out.push(json!({"body": b.name, "center": [m.centroid.x, m.centroid.y, m.centroid.z], "volume": m.volume}));
|
||||
}
|
||||
if out.is_empty() {
|
||||
|
||||
Reference in new issue
Block a user