summaryrefslogtreecommitdiff
path: root/src/sim/lib/components.rs
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2026-09-01 19:08:17 -0700
committerKai Stevenson <kai@kaistevenson.com>2026-09-01 19:08:17 -0700
commit7eedb19a5f28150a28b8cf1ec5fb08139d6b5590 (patch)
tree7a2b43902bda122e7c025d0abbda22a4de936860 /src/sim/lib/components.rs
parent2335bd23e3b4e09177ff02e236612b78c1730b9c (diff)
lint
Diffstat (limited to 'src/sim/lib/components.rs')
-rw-r--r--src/sim/lib/components.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/lib/components.rs b/src/sim/lib/components.rs
index f1c34ac..d43a567 100644
--- a/src/sim/lib/components.rs
+++ b/src/sim/lib/components.rs
@@ -111,7 +111,7 @@ pub fn compute_components(cells: &[Cell], w: i32, h: i32) -> Vec<PositionedCompo
as usize] = old_cell.cell;
}
- let pc_centre = ((c.bounds[0] + c.bounds[1] + IVec2::ONE).as_vec2() / 2.0);
+ let pc_centre = (c.bounds[0] + c.bounds[1] + IVec2::ONE).as_vec2() / 2.0 ;
let adjusted_pc_centre = pc_centre - (Vec2::new(w as f32, h as f32) / 2.0);
let pc = PositionedComponent {
position: adjusted_pc_centre,