tests/processor clippy

This commit is contained in:
Luke Parker 2023-08-01 05:33:08 -04:00
parent 044b299cda
commit e3a70ef0dc
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
#![allow(clippy::needless_pass_by_ref_mut)] // False positives
use std::sync::{OnceLock, Mutex};
use zeroize::Zeroizing;

View file

@ -319,7 +319,7 @@ impl Wallet {
let rpc = HttpRpc::new(rpc_url).expect("couldn't connect to the Monero RPC");
// Prepare inputs
let outputs = inputs.drain(..).collect::<Vec<_>>();
let outputs = std::mem::take(inputs);
let mut these_inputs = vec![];
for output in outputs {
these_inputs.push(