From b85a668ddf29c0bae7e6e5e57a3c41b50f949df5 Mon Sep 17 00:00:00 2001 From: darklyspaced Date: Thu, 14 Sep 2023 23:09:56 +0800 Subject: [PATCH] added option to rust keywords --- packages/quicktype-core/src/language/Rust.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/quicktype-core/src/language/Rust.ts b/packages/quicktype-core/src/language/Rust.ts index 93b0a1b33..3e3a3b89b 100644 --- a/packages/quicktype-core/src/language/Rust.ts +++ b/packages/quicktype-core/src/language/Rust.ts @@ -203,7 +203,10 @@ const keywords = [ "default", "dyn", "'static", - "union" + "union", + + // Conflict between `std::Option` and potentially generated Option + "option" ]; const isAsciiLetterOrUnderscoreOrDigit = (codePoint: number): boolean => {