Skip to content

Commit bc2e3f8

Browse files
committed
refactor
1 parent e44c8d0 commit bc2e3f8

File tree

4 files changed

+269
-91
lines changed

4 files changed

+269
-91
lines changed

src/generate/interrupt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn render(
6767
.unwrap_or_else(|| interrupt.0.name.clone())
6868
);
6969

70-
let value = util::unsuffixed(interrupt.0.value.into());
70+
let value = util::unsuffixed(interrupt.0.value);
7171

7272
let mut feature_attribute_flag = false;
7373
let mut feature_attribute = TokenStream::new();
@@ -111,7 +111,7 @@ pub fn render(
111111
names_cfg_attr.push(feature_attribute);
112112
}
113113

114-
let n = util::unsuffixed(pos.into());
114+
let n = util::unsuffixed(pos);
115115
match target {
116116
Target::CortexM => {
117117
for name in &names {

0 commit comments

Comments
 (0)