diff options
Diffstat (limited to 'import/src/main.rs')
-rw-r--r-- | import/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/import/src/main.rs b/import/src/main.rs index 71c3c1e..29d1e21 100644 --- a/import/src/main.rs +++ b/import/src/main.rs @@ -309,9 +309,9 @@ fn make_ident(s: &str) -> String { let mut out = String::new(); for s in s.chars() { match s { - 'a'..='z' => out.push(s), + 'a'..='z' | '0'..='9' => out.push(s), 'A'..='Z' => out.push(s.to_ascii_lowercase()), - '-' | ' ' | '_' => out.push('-'), + '-' | ' ' | '_' | ':' => out.push('-'), _ => (), } } |