forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
+12
-14
@@ -6,7 +6,6 @@ pub mod defaults;
|
||||
mod donate;
|
||||
pub mod draw;
|
||||
pub mod fence;
|
||||
pub mod units;
|
||||
pub mod groups;
|
||||
pub mod inquiry;
|
||||
pub mod layers;
|
||||
@@ -14,6 +13,7 @@ pub mod modify;
|
||||
pub mod properties;
|
||||
mod report;
|
||||
pub mod select;
|
||||
pub mod units;
|
||||
|
||||
use crate::modules::{CadModule, RibbonGroup, RibbonItem};
|
||||
|
||||
@@ -35,6 +35,7 @@ impl CadModule for DrawModule {
|
||||
use clipboard::{copy_clip, cut, paste};
|
||||
use draw::{arc, circle, ellipse, hatch, line, polyline, shapes};
|
||||
use groups::{group, ungroup};
|
||||
use inquiry::{area, dist};
|
||||
use layers::{
|
||||
layfrz, layiso, laylck, layoff, layon, laythw, layulk, layuniso, make_current,
|
||||
match_layer, panel,
|
||||
@@ -43,7 +44,6 @@ impl CadModule for DrawModule {
|
||||
array, copy, delete, explode, fillet, mirror, offset, rotate, scale, stretch,
|
||||
translate, trim,
|
||||
};
|
||||
use inquiry::{area, dist};
|
||||
use properties::match_prop;
|
||||
|
||||
static GROUPS: std::sync::OnceLock<Vec<RibbonGroup>> = std::sync::OnceLock::new();
|
||||
@@ -238,18 +238,16 @@ impl CadModule for DrawModule {
|
||||
},
|
||||
RibbonGroup {
|
||||
title: "Measure",
|
||||
tools: vec![
|
||||
RibbonItem::LargeDropdown {
|
||||
id: "MEASURE_MENU",
|
||||
label: "Measure",
|
||||
icon: dist::ICON,
|
||||
items: vec![
|
||||
("DIST", "Distance", dist::ICON),
|
||||
("AREA", "Area", area::ICON),
|
||||
],
|
||||
default: "DIST",
|
||||
},
|
||||
],
|
||||
tools: vec![RibbonItem::LargeDropdown {
|
||||
id: "MEASURE_MENU",
|
||||
label: "Measure",
|
||||
icon: dist::ICON,
|
||||
items: vec![
|
||||
("DIST", "Distance", dist::ICON),
|
||||
("AREA", "Area", area::ICON),
|
||||
],
|
||||
default: "DIST",
|
||||
}],
|
||||
},
|
||||
// Support group lives on the Start tab now (see view.rs:
|
||||
// start_page_view). Removed from the Draw ribbon to declutter.
|
||||
|
||||
Reference in new issue
Block a user