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 5208240 commit 79aa408Copy full SHA for 79aa408
src/lib.rs
@@ -74,7 +74,7 @@ pub fn gen_peripheral(p: &Peripheral, d: &Defaults) -> Vec<Tokens> {
74
respace(®ister.description))[..];
75
76
let reg_ty = Ident::new(register.name.to_pascal_case());
77
- let reg_name = Ident::new(register.name.to_snake_case());
+ let reg_name = Ident::new(register.name.to_snake_case().sanitize());
78
fields.push(quote! {
79
#[doc = #comment]
80
pub #reg_name : #reg_ty
0 commit comments