aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/codegen/gen_lint_completions.rs2
-rw-r--r--xtask/src/codegen/gen_parser_tests.rs10
2 files changed, 6 insertions, 6 deletions
diff --git a/xtask/src/codegen/gen_lint_completions.rs b/xtask/src/codegen/gen_lint_completions.rs
index cffe954f8..b97421217 100644
--- a/xtask/src/codegen/gen_lint_completions.rs
+++ b/xtask/src/codegen/gen_lint_completions.rs
@@ -20,7 +20,7 @@ pub fn generate_lint_completions(mode: Mode) -> Result<()> {
20 20
21 let ts_clippy = generate_descriptor_clippy(&Path::new("./target/clippy_lints.json"))?; 21 let ts_clippy = generate_descriptor_clippy(&Path::new("./target/clippy_lints.json"))?;
22 let ts = quote! { 22 let ts = quote! {
23 use crate::complete_attribute::LintCompletion; 23 use crate::completions::attribute::LintCompletion;
24 #ts_features 24 #ts_features
25 #ts_clippy 25 #ts_clippy
26 }; 26 };
diff --git a/xtask/src/codegen/gen_parser_tests.rs b/xtask/src/codegen/gen_parser_tests.rs
index 19ae949d4..6e4abd10c 100644
--- a/xtask/src/codegen/gen_parser_tests.rs
+++ b/xtask/src/codegen/gen_parser_tests.rs
@@ -45,15 +45,15 @@ pub fn generate_parser_tests(mode: Mode) -> Result<()> {
45 45
46#[derive(Debug)] 46#[derive(Debug)]
47struct Test { 47struct Test {
48 pub name: String, 48 name: String,
49 pub text: String, 49 text: String,
50 pub ok: bool, 50 ok: bool,
51} 51}
52 52
53#[derive(Default, Debug)] 53#[derive(Default, Debug)]
54struct Tests { 54struct Tests {
55 pub ok: HashMap<String, Test>, 55 ok: HashMap<String, Test>,
56 pub err: HashMap<String, Test>, 56 err: HashMap<String, Test>,
57} 57}
58 58
59fn collect_tests(s: &str) -> Vec<Test> { 59fn collect_tests(s: &str) -> Vec<Test> {