Skip to content

Commit 221d25b

Browse files
committed
fix: remove unnecessary pattern binding
1 parent f58d110 commit 221d25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/peripheral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn render(
5858
};
5959

6060
match p_original {
61-
p @ Peripheral::Array(_, dim) if !config.const_generic => {
61+
Peripheral::Array(p, dim) if !config.const_generic => {
6262
let names: Vec<Cow<str>> = names(p, dim).map(|n| n.into()).collect();
6363
let names_str = names.iter().map(|n| n.to_sanitized_upper_case());
6464
let names_pc = names_str.clone().map(|n| Ident::new(&n, span));

0 commit comments

Comments
 (0)