Skip to content

Commit

Permalink
Fix Develop Lints for Clippy Update (#2093)
Browse files Browse the repository at this point in the history
* fix dht lint

* Update task_impls panic lint

* try installing the latest toolchain

---------

Co-authored-by: elliedavidson <118024407+elliedavidson@users.noreply.github.com>
  • Loading branch information
rob-maron and elliedavidson authored Nov 21, 2023
1 parent 386fe2d commit 13bb20a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- uses: actions/checkout@v4
name: Checkout Repository

- run: rustup toolchain install stable --profile minimal

- uses: Swatinem/rust-cache@v2
name: Enable Rust Caching
with:
Expand Down
1 change: 0 additions & 1 deletion crates/libp2p-networking/tests/counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ async fn run_dht_rounds(
}
Ok(v) => {
assert_eq!(v, value);
break;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions crates/task/src/task_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ pub mod test {
tokio::test(flavor = "multi_thread", worker_threads = 2)
)]
#[cfg_attr(async_executor_impl = "async-std", async_std::test)]
#[allow(clippy::should_panic_without_expect)]
#[should_panic]
async fn test_init_with_event_stream() {
setup_logging();
Expand Down

0 comments on commit 13bb20a

Please sign in to comment.