diff options
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | helix-core/src/test.rs | 1 | ||||
-rw-r--r-- | xtask/src/querycheck.rs | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef47a277..15734361 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,7 +101,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --all-targets -- -D warnings + args: --workspace --all-targets -- -D warnings - name: Run cargo doc uses: actions-rs/cargo@v1 diff --git a/helix-core/src/test.rs b/helix-core/src/test.rs index 3e54d2c2..17523ed7 100644 --- a/helix-core/src/test.rs +++ b/helix-core/src/test.rs @@ -148,6 +148,7 @@ pub fn plain(s: &str, selection: Selection) -> String { } #[cfg(test)] +#[allow(clippy::module_inception)] mod test { use super::*; 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) { |