Skip to content

Commit

Permalink
added option to rust keywords (#2399)
Browse files Browse the repository at this point in the history
Co-authored-by: David Siegel <dvdsgl@users.noreply.github.com>
  • Loading branch information
darklyspaced and dvdsgl authored Jan 6, 2024
1 parent 2a60269 commit 838c5e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/quicktype-core/src/language/Rust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 838c5e0

Please sign in to comment.