style: apply cargo fmt across workspace

This commit is contained in:
Karim Jerbi committed 2026-10-11 03:14:29 +01:00
1 parent 85710e5454
commit 9cf9ff2c5c
531 files changed
+57740 -33906

No files matched your search

+9 -5
View File
@@ -14,9 +14,9 @@
// All arithmetic is kept in f64 (picked points stay full precision; downcasting
// to f32 loses several hundredths of a unit at survey-scale coordinates).
use crate::t;
use codec::{EntityType, Handle};
use glam::DVec3;
use crate::t;
use crate::command::{CadCommand, CmdResult, WorkingPlane};
use crate::modules::{IconKind, ModuleEvent, ToolDef};
@@ -103,9 +103,9 @@ impl MeasureGeomCommand {
plinegen: true,
fill_tris: vec![],
fill_tris_low: Vec::new(),
..Default::default()
}
}
}
/// Extract (radius) from a Circle or Arc; `None` for anything else.
@@ -129,7 +129,8 @@ impl MeasureGeomCommand {
let angle_xy = dy.atan2(dx).to_degrees();
let aprec = crate::entities::common::unit_context().auprec.max(0) as usize;
let dist_s = crate::entities::common::format_length(dist);
let angle_xy_s = crate::entities::common::without_negative_zero(format!("{angle_xy:.aprec$}"));
let angle_xy_s =
crate::entities::common::without_negative_zero(format!("{angle_xy:.aprec$}"));
let dx_s = crate::entities::common::format_length(dx);
let dy_s = crate::entities::common::format_length(dy);
let dz_s = crate::entities::common::format_length(dz);
@@ -146,7 +147,10 @@ impl MeasureGeomCommand {
/// AREA readout: shoelace area (f64, relative to first vertex) + perimeter.
fn area_msg(plane: WorkingPlane, points: &[DVec3]) -> String {
let points = points.iter().map(|point| plane.to_local(*point)).collect::<Vec<_>>();
let points = points
.iter()
.map(|point| plane.to_local(*point))
.collect::<Vec<_>>();
let n = points.len();
let origin = points[0];
let mut area_sum = 0.0f64;