Skip to content

Commit 633403b

Browse files
committed
Add square brackets [ and ] to BLACKLIST_CHARS
1 parent 43f730d commit 633403b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use errors::*;
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: &'static [char] = &['(', ')'];
14+
const BLACKLIST_CHARS: &'static [char] = &['(', ')', '[', ']'];
1515

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

0 commit comments

Comments
 (0)