From 838c5e0e63a50d7c7790dc81118e664480fc4a80 Mon Sep 17 00:00:00 2001 From: rohan Date: Sun, 7 Jan 2024 06:37:18 +0800 Subject: [PATCH] added option to rust keywords (#2399) Co-authored-by: David Siegel --- 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 => {