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
@@ -26,10 +26,7 @@ fn copy_dimension_duplicates_its_block() {
|
||||
scene.document.add_entity(sub_e).unwrap();
|
||||
|
||||
// A linear dimension whose drawn geometry is that baked block.
|
||||
let mut dim = DimensionLinear::new(
|
||||
Vector3::new(0.0, 0.0, 0.0),
|
||||
Vector3::new(10.0, 0.0, 0.0),
|
||||
);
|
||||
let mut dim = DimensionLinear::new(Vector3::new(0.0, 0.0, 0.0), Vector3::new(10.0, 0.0, 0.0));
|
||||
dim.base.block_name = "*D0".to_string();
|
||||
let dim_h = scene.add_entity(EntityType::Dimension(Dimension::Linear(dim)));
|
||||
|
||||
@@ -67,6 +64,9 @@ fn copy_dimension_duplicates_its_block() {
|
||||
(l.start.x, l.start.y),
|
||||
(l.end.x, l.end.y)
|
||||
),
|
||||
other => panic!("copy block sub is not a line: {:?}", other.map(std::mem::discriminant)),
|
||||
other => panic!(
|
||||
"copy block sub is not a line: {:?}",
|
||||
other.map(std::mem::discriminant)
|
||||
),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user