From e035793b6d35884b40df28ad4ace189fb111f76a Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 10 May 2018 22:45:24 +0200 Subject: [PATCH] Add '/', ' ' to BLACKLIST_CHARS --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index ab216538..51c42805 100644 --- a/src/util.rs +++ b/src/util.rs @@ -12,7 +12,7 @@ pub const BITS_PER_BYTE: u32 = 8; /// List of chars that some vendors use in their peripheral/field names but /// that are not valid in Rust ident -const BLACKLIST_CHARS: &'static [char] = &['(', ')', '[', ']']; +const BLACKLIST_CHARS: &'static [char] = &['(', ')', '[', ']', '/', ' ']; pub trait ToSanitizedPascalCase { fn to_sanitized_pascal_case(&self) -> Cow;