fix(clippy): Resolve nightly clippy lints (#6623)

* Clippy: fix "unused mut" warning in tests on nightly

* Remove redundant calls to default()
This commit is contained in:
teor 2023-05-14 11:34:03 +10:00 committed by GitHub
parent 01908822f1
commit d58d827af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ where
Self {
network,
state: Timeout::new(state, UTXO_LOOKUP_TIMEOUT),
script_verifier: script::Verifier::default(),
script_verifier: script::Verifier,
}
}
}

View File

@ -31,7 +31,7 @@ async fn unready_service_result_ok() {
key: Some(MockKey),
cancel,
service: Some(mock_client),
_req: PhantomData::default(),
_req: PhantomData,
};
let result = unready_service.await;
@ -50,7 +50,7 @@ async fn unready_service_result_canceled() {
key: Some(MockKey),
cancel,
service: Some(mock_client),
_req: PhantomData::default(),
_req: PhantomData,
};
cancel_sender
@ -73,7 +73,7 @@ async fn unready_service_result_cancel_handle_dropped() {
key: Some(MockKey),
cancel,
service: Some(mock_client),
_req: PhantomData::default(),
_req: PhantomData,
};
std::mem::drop(cancel_sender);

View File

@ -1033,7 +1033,7 @@ fn transaction_v4_with_joinsplit_data(
joinsplit_data.first.vpub_old = zero_amount;
joinsplit_data.first.vpub_new = zero_amount;
for mut joinsplit in &mut joinsplit_data.rest {
for joinsplit in &mut joinsplit_data.rest {
joinsplit.vpub_old = zero_amount;
joinsplit.vpub_new = zero_amount;
}