Skip to content

Commit f271405

Browse files
authored
Merge pull request #215 from astro/blacklist-slash-and-space
Add `'/'`, `' '` to `BLACKLIST_CHARS`
2 parents ce97ac4 + e035793 commit f271405

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
@@ -12,7 +12,7 @@ pub const BITS_PER_BYTE: u32 = 8;
1212

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

1717
pub trait ToSanitizedPascalCase {
1818
fn to_sanitized_pascal_case(&self) -> Cow<str>;

0 commit comments

Comments
 (0)