diff options
author | Thales Fragoso <thales.fragosoz@gmail.com> | 2021-07-29 18:48:43 -0300 |
---|---|---|
committer | Thales Fragoso <thales.fragosoz@gmail.com> | 2021-07-29 18:48:43 -0300 |
commit | 16d52948179fce0766dfa00e7dc10d180b5a69f2 (patch) | |
tree | 4dc1b6e3e7d0c85ba215281f270f52d6075f31d7 | |
parent | 0421c57bd6b47214c87a58d7ad474f5c065af6e9 (diff) | |
download | embassy-16d52948179fce0766dfa00e7dc10d180b5a69f2.zip |
Get rid of some warnings
-rw-r--r-- | stm32-metapac-gen/src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/stm32-metapac-gen/src/lib.rs b/stm32-metapac-gen/src/lib.rs index 83f4dcfb..f508b365 100644 --- a/stm32-metapac-gen/src/lib.rs +++ b/stm32-metapac-gen/src/lib.rs @@ -1,5 +1,4 @@ use chiptool::generate::CommonModule; -use proc_macro2::TokenStream; use regex::Regex; use serde::Deserialize; use std::collections::{HashMap, HashSet}; @@ -10,7 +9,6 @@ use std::fs::File; use std::io::Write; use std::path::Path; use std::path::PathBuf; -use std::str::FromStr; use chiptool::util::ToSanitizedSnakeCase; use chiptool::{generate, ir, transform}; @@ -54,7 +52,7 @@ pub struct Peripheral { #[serde(default)] pub dma_channels: HashMap<String, Vec<PeripheralDmaChannel>>, #[serde(default)] - pub interrupts: HashMap<String, String> + pub interrupts: HashMap<String, String>, } #[derive(Debug, Eq, PartialEq, Clone, Deserialize)] @@ -353,8 +351,8 @@ pub fn gen(options: Options) { row.push(name.clone()); row.push(bi.module.clone()); row.push(bi.block.clone()); - row.push( signal.clone() ); - row.push( irq_name.to_ascii_uppercase() ); + row.push(signal.clone()); + row.push(irq_name.to_ascii_uppercase()); interrupt_table.push(row) } |