Skip to content

Commit 3084fd9

Browse files
author
Yin Jifeng
committed
chore: apply cargo fmt
1 parent 1eea181 commit 3084fd9

File tree

1 file changed

+5
-52
lines changed

1 file changed

+5
-52
lines changed

graphql_client_codegen/src/codegen/shared.rs

Lines changed: 5 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,11 @@ use std::borrow::Cow;
55
// List of keywords based on https://doc.rust-lang.org/reference/keywords.html
66
// code snippet: `[...new Set($$("code.hljs").map(x => x.textContent).filter(x => x.match(/^[_a-z0-9]+$/i)))].sort()`
77
const RUST_KEYWORDS: &[&str] = &[
8-
"Self",
9-
"abstract",
10-
"as",
11-
"async",
12-
"await",
13-
"become",
14-
"box",
15-
"break",
16-
"const",
17-
"continue",
18-
"crate",
19-
"do",
20-
"dyn",
21-
"else",
22-
"enum",
23-
"extern",
24-
"false",
25-
"final",
26-
"fn",
27-
"for",
28-
"if",
29-
"impl",
30-
"in",
31-
"let",
32-
"loop",
33-
"macro",
34-
"match",
35-
"mod",
36-
"move",
37-
"mut",
38-
"override",
39-
"priv",
40-
"pub",
41-
"ref",
42-
"return",
43-
"self",
44-
"static",
45-
"struct",
46-
"super",
47-
"trait",
48-
"true",
49-
"try",
50-
"type",
51-
"typeof",
52-
"union",
53-
"unsafe",
54-
"unsized",
55-
"use",
56-
"virtual",
57-
"where",
58-
"while",
59-
"yield",
8+
"Self", "abstract", "as", "async", "await", "become", "box", "break", "const", "continue",
9+
"crate", "do", "dyn", "else", "enum", "extern", "false", "final", "fn", "for", "if", "impl",
10+
"in", "let", "loop", "macro", "match", "mod", "move", "mut", "override", "priv", "pub", "ref",
11+
"return", "self", "static", "struct", "super", "trait", "true", "try", "type", "typeof",
12+
"union", "unsafe", "unsized", "use", "virtual", "where", "while", "yield",
6013
];
6114

6215
pub(crate) fn keyword_replace<'a>(needle: impl Into<Cow<'a, str>>) -> Cow<'a, str> {

0 commit comments

Comments
 (0)