From 20e16761ad4d850bb66d2e0beb3454e80951fe5d Mon Sep 17 00:00:00 2001 From: Eric Tu Date: Mon, 23 Sep 2024 18:22:25 -0400 Subject: [PATCH] make clippy only run on library --- .github/workflows/rust-checks.yml | 2 +- tests/message-board-sync.rs | 2 +- tests/simple-sync-and-send.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust-checks.yml b/.github/workflows/rust-checks.yml index 1b5fb2d..2612753 100644 --- a/.github/workflows/rust-checks.yml +++ b/.github/workflows/rust-checks.yml @@ -36,4 +36,4 @@ jobs: - uses: actions-rs/cargo@v1 with: command: clippy - args: --all --all-targets -- -D warnings + args: --all --lib -- -D warnings diff --git a/tests/message-board-sync.rs b/tests/message-board-sync.rs index 4160a44..a1ec7eb 100644 --- a/tests/message-board-sync.rs +++ b/tests/message-board-sync.rs @@ -21,7 +21,7 @@ const SAPLING_EFVK: &str = "zxviews1q0duytgcqqqqpqre26wkl45gvwwwd706xw608hucmvfa #[wasm_bindgen_test] async fn test_message_board() { initialize(); - #[cfg(all(feature = "wasm-parallel"))] + #[cfg(feature = "wasm-parallel")] let _ = wasm_bindgen_futures::JsFuture::from(wasm_bindgen_rayon::init_thread_pool(10)).await; let main_handler = thread::Builder::new() .spawn_async(|| async { diff --git a/tests/simple-sync-and-send.rs b/tests/simple-sync-and-send.rs index 511c238..9b493fa 100644 --- a/tests/simple-sync-and-send.rs +++ b/tests/simple-sync-and-send.rs @@ -23,7 +23,7 @@ pub fn initialize() { #[wasm_bindgen_test] async fn test_get_and_scan_range() { initialize(); - #[cfg(all(feature = "wasm-parallel"))] + #[cfg(feature = "wasm-parallel")] let _ = JsFuture::from(wasm_bindgen_rayon::init_thread_pool(10)).await; assert!(!thread::is_web_worker_thread()); let main_handler = thread::Builder::new().spawn_async(|| async {