We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79aa408 commit 5c9441bCopy full SHA for 5c9441b
src/main.rs
@@ -44,7 +44,9 @@ fn main() {
44
if let Some(peripheral) = d.peripherals
45
.iter()
46
.find(|x| x.name.to_ascii_lowercase() == pattern)
47
- .or(d.peripherals.iter().find(|x| x.name.to_ascii_lowercase().contains(&pattern))) {
+ .or(d.peripherals
48
+ .iter()
49
+ .find(|x| x.name.to_ascii_lowercase().contains(&pattern))) {
50
println!("{}",
51
svd2rust::gen_peripheral(peripheral, &d.defaults)
52
0 commit comments