Skip to content

Commit 2061b84

Browse files
committed
Sanitize names from dashes more
1 parent c3bcc1f commit 2061b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub const BITS_PER_BYTE: u32 = 8;
1111

1212
/// List of chars that some vendors use in their peripheral/field names but
1313
/// that are not valid in Rust ident
14-
const BLACKLIST_CHARS: &[char] = &['(', ')', '[', ']', '/', ' '];
14+
const BLACKLIST_CHARS: &[char] = &['(', ')', '[', ']', '/', ' ', '-'];
1515

1616
#[derive(Clone, Copy, PartialEq)]
1717
pub enum Target {

0 commit comments

Comments
 (0)