fix(clippy): Ignore clippy drop warnings in tests (#4081)

* Silence clippy drop warning in tests

* Allow unknown lints for new lints in nightly
This commit is contained in:
teor 2022-04-12 20:06:52 +10:00 committed by GitHub
parent 47c1c01fcf
commit e557249cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -47,6 +47,9 @@ async fn client_service_ready_drop_ok() {
let (mut client, mut harness) = ClientTestHarness::build().finish();
// If the readiness future gains a `Drop` impl, we want it to be called here.
#[allow(unknown_lints)]
#[allow(clippy::drop_non_drop)]
std::mem::drop(client.ready());
assert!(client.is_ready().await);

View File

@ -56,7 +56,9 @@ fn peer_set_ready_single_connection() {
// Get a ready future
let peer_ready_future = peer_set.ready();
// Drop the future
// If the readiness future gains a `Drop` impl, we want it to be called here.
#[allow(unknown_lints)]
#[allow(clippy::drop_non_drop)]
std::mem::drop(peer_ready_future);
// Peer set will remain ready for requests