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

+1 -1
View File
@@ -3,8 +3,8 @@
// The command only collects the base point; the host performs the copy when it
// receives the dispatched `COPYBASE_AT <x> <y> <z>` token.
use glam::DVec3;
use crate::t;
use glam::DVec3;
use crate::command::{CadCommand, CmdResult};
+20 -7
View File
@@ -15,9 +15,9 @@ pub const MENU_ITEMS: &[(&str, &str, IconKind)] = &[
// ── CadCommand implementation ─────────────────────────────────────────────
use crate::t;
use codec::Handle;
use glam::{DVec3, Vec3};
use crate::t;
use crate::command::{CadCommand, CmdResult};
use crate::scene::model::wire_model::WireModel;
@@ -53,10 +53,18 @@ impl PasteCommand {
if too_heavy {
if let Some(bbox_wire) = Self::bbox_outline(&wires) {
// Drop the full wires — the box is all the ghost needs now.
return Self { wires: Vec::new(), bbox_wire: Some(bbox_wire), base };
return Self {
wires: Vec::new(),
bbox_wire: Some(bbox_wire),
base,
};
}
}
Self { wires, bbox_wire: None, base }
Self {
wires,
bbox_wire: None,
base,
}
}
/// Build a closed rectangle outline around the XY extent of `wires`, in the
@@ -130,8 +138,13 @@ impl CadCommand for PasteCommand {
}
}
// ── Autocomplete registry ─────────────────────────────────
inventory::submit!(crate::command::CommandRegistration { names: &["PASTE", "PASTECLIP"] }); // PasteCommand
inventory::submit!(crate::command::CommandRegistration { names: &["PASTEORIG"] });
inventory::submit!(crate::command::CommandRegistration { names: &["PASTEBLOCK"] });
inventory::submit!(crate::command::CommandRegistration {
names: &["PASTE", "PASTECLIP"]
}); // PasteCommand
inventory::submit!(crate::command::CommandRegistration {
names: &["PASTEORIG"]
});
inventory::submit!(crate::command::CommandRegistration {
names: &["PASTEBLOCK"]
});