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:
parent
01908822f1
commit
d58d827af9
|
@ -77,7 +77,7 @@ where
|
||||||
Self {
|
Self {
|
||||||
network,
|
network,
|
||||||
state: Timeout::new(state, UTXO_LOOKUP_TIMEOUT),
|
state: Timeout::new(state, UTXO_LOOKUP_TIMEOUT),
|
||||||
script_verifier: script::Verifier::default(),
|
script_verifier: script::Verifier,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ async fn unready_service_result_ok() {
|
||||||
key: Some(MockKey),
|
key: Some(MockKey),
|
||||||
cancel,
|
cancel,
|
||||||
service: Some(mock_client),
|
service: Some(mock_client),
|
||||||
_req: PhantomData::default(),
|
_req: PhantomData,
|
||||||
};
|
};
|
||||||
|
|
||||||
let result = unready_service.await;
|
let result = unready_service.await;
|
||||||
|
@ -50,7 +50,7 @@ async fn unready_service_result_canceled() {
|
||||||
key: Some(MockKey),
|
key: Some(MockKey),
|
||||||
cancel,
|
cancel,
|
||||||
service: Some(mock_client),
|
service: Some(mock_client),
|
||||||
_req: PhantomData::default(),
|
_req: PhantomData,
|
||||||
};
|
};
|
||||||
|
|
||||||
cancel_sender
|
cancel_sender
|
||||||
|
@ -73,7 +73,7 @@ async fn unready_service_result_cancel_handle_dropped() {
|
||||||
key: Some(MockKey),
|
key: Some(MockKey),
|
||||||
cancel,
|
cancel,
|
||||||
service: Some(mock_client),
|
service: Some(mock_client),
|
||||||
_req: PhantomData::default(),
|
_req: PhantomData,
|
||||||
};
|
};
|
||||||
|
|
||||||
std::mem::drop(cancel_sender);
|
std::mem::drop(cancel_sender);
|
||||||
|
|
|
@ -1033,7 +1033,7 @@ fn transaction_v4_with_joinsplit_data(
|
||||||
joinsplit_data.first.vpub_old = zero_amount;
|
joinsplit_data.first.vpub_old = zero_amount;
|
||||||
joinsplit_data.first.vpub_new = 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_old = zero_amount;
|
||||||
joinsplit.vpub_new = zero_amount;
|
joinsplit.vpub_new = zero_amount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue