Skip to content

Commit b9b046d

Browse files
committed
added dyn keyword to KEYWORDS in sanitize_keyword
1 parent 7264731 commit b9b046d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ impl ToSanitizedSnakeCase for str {
148148
}
149149

150150
pub fn sanitize_keyword(sc: Cow<str>) -> Cow<str> {
151-
const KEYWORDS: [&str; 54] = [
151+
const KEYWORDS: [&str; 55] = [
152152
"abstract", "alignof", "as", "async", "await", "become", "box", "break", "const",
153-
"continue", "crate", "do", "else", "enum", "extern", "false", "final", "fn", "for", "if",
154-
"impl", "in", "let", "loop", "macro", "match", "mod", "move", "mut", "offsetof",
153+
"continue", "crate", "do", "dyn", "else", "enum", "extern", "false", "final", "fn", "for",
154+
"if", "impl", "in", "let", "loop", "macro", "match", "mod", "move", "mut", "offsetof",
155155
"override", "priv", "proc", "pub", "pure", "ref", "return", "self", "sizeof", "static",
156156
"struct", "super", "trait", "true", "try", "type", "typeof", "unsafe", "unsized", "use",
157157
"virtual", "where", "while", "yield",

0 commit comments

Comments
 (0)