From 0a3e4c2052ce87799fa070beebb662e2d70ca4fe Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Sat, 5 Aug 2023 18:31:18 -0500 Subject: [PATCH] remove unneccessary paranthesis --- stm32-data-gen/src/chips.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index c005481..c46d123 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -824,7 +824,7 @@ fn process_core( entry.insert(format!("ADC_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); } } - if pname.starts_with("ADC3") && (chip_name.starts_with("STM32H7")) { + if pname.starts_with("ADC3") && chip_name.starts_with("STM32H7") { if let Entry::Vacant(entry) = peri_kinds.entry("ADC3_COMMON".to_string()) { entry.insert(format!("ADC3_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); }