diff --git a/src/model_objects/component.rs b/src/model_objects/component.rs index 5f9b0dff..a9a74138 100644 --- a/src/model_objects/component.rs +++ b/src/model_objects/component.rs @@ -433,7 +433,7 @@ impl Declarations { } pub fn get_clock_count(&self) -> usize { - self.clocks.len() + self.clocks.values().collect::>().len() } pub fn set_clock_indices(&mut self, start_index: ClockIndex) {