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

+13 -10
View File
@@ -176,9 +176,7 @@ impl super::OpenCADStudio {
EntityType::AttributeEntity(a) => (vec3(a.insertion_point), a.height),
EntityType::Dimension(d) => (vec3(d.base().insertion_point), 0.25),
EntityType::Tolerance(t) => (vec3(t.insertion_point), t.text_height),
EntityType::MultiLeader(ml) => {
(vec3(ml.context.text_location), ml.context.text_height)
}
EntityType::MultiLeader(ml) => (vec3(ml.context.text_location), ml.context.text_height),
_ => (DVec3::ZERO, 0.25),
};
@@ -214,7 +212,13 @@ impl super::OpenCADStudio {
creation,
screen_anchor: iced::Point::new(60.0, 90.0),
};
if let Some(p) = self.tabs[self.active_tab].scene.selection.borrow().input.last_move_pos {
if let Some(p) = self.tabs[self.active_tab]
.scene
.selection
.borrow()
.input
.last_move_pos
{
state.screen_anchor = p;
}
self.text_inline = Some(state);
@@ -224,7 +228,9 @@ impl super::OpenCADStudio {
/// Empty content drops a new entity and leaves an edited one untouched.
pub(super) fn text_inline_commit(&mut self) -> bool {
let i = self.active_tab;
let Some(ed) = self.text_inline.take() else { return false };
let Some(ed) = self.text_inline.take() else {
return false;
};
if ed.value.trim().is_empty() && ed.editing.is_none() {
self.refresh_properties();
return false;
@@ -254,11 +260,8 @@ impl super::OpenCADStudio {
prepared
} else {
let position = plane.to_local(ed.pos);
Text::with_value(
&ed.value,
Vector3::new(position.x, position.y, position.z),
)
.with_height(ed.height)
Text::with_value(&ed.value, Vector3::new(position.x, position.y, position.z))
.with_height(ed.height)
};
// New text inherits the document's current text style (STYLE), not
// the entity default. See #92.