aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorJonathan LEI2022-11-07 04:39:18 +0000
committerGitHub2022-11-07 04:39:18 +0000
commiteddf9f0b7f2eacac690afad05abdae398bb17366 (patch)
treeaa485a711e3909f5e599d0f3f0b19b0733bb037a /xtask
parent140df92d7936e1fd036128d98ab565d92e9d2bd8 (diff)
Run clippy on workspace in CI (#4614)
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/querycheck.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/querycheck.rs b/xtask/src/querycheck.rs
index 7014c7d6..454d0e5c 100644
--- a/xtask/src/querycheck.rs
+++ b/xtask/src/querycheck.rs
@@ -17,8 +17,8 @@ pub fn query_check() -> Result<(), DynError> {
let language_name = &language.language_id;
let grammar_name = language.grammar.as_ref().unwrap_or(language_name);
for query_file in query_files {
- let language = get_language(&grammar_name);
- let query_text = read_query(&language_name, query_file);
+ let language = get_language(grammar_name);
+ let query_text = read_query(language_name, query_file);
if let Ok(lang) = language {
if !query_text.is_empty() {
if let Err(reason) = Query::new(lang, &query_text) {