diff --git a/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs b/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs index 7db42c4f45..89bb7c794d 100644 --- a/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs +++ b/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs @@ -481,7 +481,7 @@ where .into_iter() .map(|utxo| TransactionOutput::try_from(utxo).map_err(UtxoScannerError::ConversionError)) .collect::, _>>()?; - let first_output = Some(outputs[0].clone()); + let first_output = outputs.get(0).cloned(); total_scanned += outputs.len(); let start = Instant::now();