From 2061b84b47073a56f7e1aae7dde3c344747b289e Mon Sep 17 00:00:00 2001 From: Nicolas Stalder Date: Wed, 14 Aug 2019 21:44:44 +0200 Subject: [PATCH] Sanitize names from dashes more --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 8963cc1c..c67511fe 100644 --- a/src/util.rs +++ b/src/util.rs @@ -11,7 +11,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: &[char] = &['(', ')', '[', ']', '/', ' ']; +const BLACKLIST_CHARS: &[char] = &['(', ')', '[', ']', '/', ' ', '-']; #[derive(Clone, Copy, PartialEq)] pub enum Target {