ci: run clippy on tests (#1659)

This commit is contained in:
Will Jones
2024-09-23 07:33:47 -07:00
committed by GitHub
parent 86978e7588
commit f5c25b6fff
2 changed files with 2 additions and 3 deletions

View File

@@ -30,7 +30,6 @@ jobs:
defaults:
run:
shell: bash
working-directory: rust
env:
# Need up-to-date compilers for kernels
CC: gcc-12
@@ -50,7 +49,7 @@ jobs:
- name: Run format
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all --all-features -- -D warnings
run: cargo clippy --workspace --tests --all-features -- -D warnings
linux:
timeout-minutes: 30
# To build all features, we need more disk space than is available

View File

@@ -3234,7 +3234,7 @@ mod tests {
let values_builder = StringBuilder::new();
let mut builder = ListBuilder::new(values_builder);
for i in 0..120 {
builder.values().append_value(TAGS[i % 3].to_string());
builder.values().append_value(TAGS[i % 3]);
if i % 3 == 0 {
builder.append(true)
}