summaryrefslogtreecommitdiff
path: root/xtask/src/querycheck.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/querycheck.rs')
-rw-r--r--xtask/src/querycheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/querycheck.rs b/xtask/src/querycheck.rs
index 454d0e5c..a27f85e6 100644
--- a/xtask/src/querycheck.rs
+++ b/xtask/src/querycheck.rs
@@ -21,7 +21,7 @@ pub fn query_check() -> Result<(), DynError> {
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) {
+ if let Err(reason) = Query::new(&lang, &query_text) {
return Err(format!(
"Failed to parse {} queries for {}: {}",
query_file, language_name, reason