From e6162eaabbe8108e5a7309f489227f1948ae6a73 Mon Sep 17 00:00:00 2001 From: Erik Vesteraas Date: Tue, 5 Feb 2019 00:08:39 +0100 Subject: [PATCH] shared: Add Rust 2018 keywords to keyword list --- json_typegen_shared/src/generation/rust.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/json_typegen_shared/src/generation/rust.rs b/json_typegen_shared/src/generation/rust.rs index 223a2aa..07919d3 100644 --- a/json_typegen_shared/src/generation/rust.rs +++ b/json_typegen_shared/src/generation/rust.rs @@ -131,6 +131,7 @@ const RUST_KEYWORDS_ARR: &[&str] = &[ "macro", "match", "mod", "move", "mut", "offsetof", "override", "priv", "proc", "pub", "pure", "ref", "return", "Self", "self", "sizeof", "static", "struct", "super", "trait", "true", "type", "typeof", "unsafe", "unsized", "use", "virtual", "where", "while", "yield", + "async", "await", "try" ]; lazy_static! {