From 8c9a13e7129c7156a4dda0aa8710513aa175c055 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Mon, 10 Jun 2024 23:51:15 +0200 Subject: [PATCH] layout: use inclusive range to describe via layers --- src/layout/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/layout.rs b/src/layout/layout.rs index 462b39d..76a975d 100644 --- a/src/layout/layout.rs +++ b/src/layout/layout.rs @@ -77,7 +77,7 @@ impl Layout { pub fn add_via(&mut self, weight: ViaWeight) -> Result, Infringement> { let compound = self.drawing.add_compound(weight.into()); - for layer in weight.from_layer..weight.to_layer { + for layer in weight.from_layer..=weight.to_layer { let dot = self.drawing.add_fixed_dot(FixedDotWeight { circle: weight.circle, layer,