Skip to content

Commit

Permalink
make clippy only run on library
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2 committed Sep 23, 2024
1 parent bbf0192 commit 20e1676
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --all-targets -- -D warnings
args: --all --lib -- -D warnings
2 changes: 1 addition & 1 deletion tests/message-board-sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/simple-sync-and-send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 20e1676

Please sign in to comment.