Skip to content

Commit 096576e

Browse files
ci: Use --all-targets for clippy jobs
1 parent df37540 commit 096576e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ jobs:
106106
with:
107107
components: clippy
108108
- name: Clippy workspace (default features)
109-
run: cargo clippy --workspace --tests -- -D warnings
109+
run: cargo clippy --workspace --all-targets -- -D warnings
110110
- name: Clippy client (tracing / async-std / native crypto)
111111
run: cargo clippy -p oo7 --no-default-features --features tracing,async-std,native_crypto,schema -- -D warnings
112112
- name: Clippy client (tracing / tokio / OpenSSL)
113-
run: cargo clippy -p oo7 --no-default-features --features tracing,tokio,openssl_crypto,schema --tests -- -D warnings
113+
run: cargo clippy -p oo7 --no-default-features --features tracing,tokio,openssl_crypto,schema --all-targets -- -D warnings
114114

115115
meson:
116116
name: Meson

client/examples/file_tracing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async fn test_search_performance() -> oo7::Result<()> {
294294
let start = Instant::now();
295295
let items = keyring.items().await?;
296296
let all_items_time = start.elapsed();
297-
let valid_items = items.iter().count();
297+
let valid_items = items.len();
298298
info!(
299299
"Get all items: {:?} (found {} valid items)",
300300
all_items_time, valid_items

server/src/service/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ impl Service {
580580
}
581581

582582
#[cfg(any(test, feature = "test-util"))]
583+
#[allow(dead_code)]
583584
pub async fn run_with_connection(
584585
connection: zbus::Connection,
585586
data_dir: std::path::PathBuf,

0 commit comments

Comments
 (0)