Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Format with rustfmt

Dylan M. Taylore505bccd5e55
diff --git a/crates/engine/src/cmd/flatten/analysis.rs b/crates/engine/src/cmd/flatten/analysis.rs
index 723649940..a5443fc71 100644
--- a/crates/engine/src/cmd/flatten/analysis.rs
+++ b/crates/engine/src/cmd/flatten/analysis.rs
@@ -283,7 +283,8 @@ mod tests {
#[test]
fn a_tall_column_groups_by_its_neighbours() {
let n = 200_000;
- let bounds: Vec<Option<Rect>> = (0..n).map(|i| Some(Rect::new(0.0, 3.0 * f64::from(i), 100.0, 3.0 * f64::from(i) + if i % 2 == 0 { 3.0 } else { 1.0 }))).collect();
+ let bounds: Vec<Option<Rect>> =
+ (0..n).map(|i| Some(Rect::new(0.0, 3.0 * f64::from(i), 100.0, 3.0 * f64::from(i) + if i % 2 == 0 { 3.0 } else { 1.0 }))).collect();
let groups = overlapping(&bounds).unwrap();
assert_eq!(groups.len(), n as usize / 2);
assert!(groups.iter().enumerate().all(|(g, ids)| ids == &[2 * g, 2 * g + 1]));