Elffuss BraidHub

kikocis/lancedb public

ci: run clippy on tests (#1659)

Changeset6c24ed805bf1b1a763ede891e1cb6b48458d4e104bdb5dcc33af01e5fd470164
AuthorWill Jones <willjones127@gmail.com> · 2024-09-23 07:33 -07:00
CommitterGitHub <noreply@github.com> · 2024-09-23 07:33 -07:00
Parents4742b7cc5764

Browse the files at this changeset

2 files changed

modified .github/workflows/rust.yml +1 −2
@@ -30,7 +30,6 @@
3030 defaults:
3131 run:
3232 shell: bash
33- working-directory: rust
3433 env:
3534 # Need up-to-date compilers for kernels
3635 CC: gcc-12
@@ -50,7 +49,7 @@
5049 - name: Run format
5150 run: cargo fmt --all -- --check
5251 - name: Run clippy
53- run: cargo clippy --all --all-features -- -D warnings
52+ run: cargo clippy --workspace --tests --all-features -- -D warnings
5453 linux:
5554 timeout-minutes: 30
5655 # To build all features, we need more disk space than is available
modified rust/lancedb/src/table.rs +1 −1
@@ -3234,7 +3234,7 @@
32343234 let values_builder = StringBuilder::new();
32353235 let mut builder = ListBuilder::new(values_builder);
32363236 for i in 0..120 {
3237- builder.values().append_value(TAGS[i % 3].to_string());
3237+ builder.values().append_value(TAGS[i % 3]);
32383238 if i % 3 == 0 {
32393239 builder.append(true)
32403240 }