mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
November 2023 - Rust Nightly Update (#413)
* Update nightly * Replace .get(0) with .first() * allow new clippy lint --------- Co-authored-by: GitHub Actions <> Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ae449535ff
commit
a2089c61fb
@@ -171,7 +171,7 @@ impl<D: Db, N: Network> MultisigManager<D, N> {
|
||||
(
|
||||
MultisigManager {
|
||||
scanner,
|
||||
existing: current_keys.get(0).cloned().map(|(activation_block, key)| MultisigViewer {
|
||||
existing: current_keys.first().cloned().map(|(activation_block, key)| MultisigViewer {
|
||||
activation_block,
|
||||
key,
|
||||
scheduler: schedulers.remove(0),
|
||||
|
||||
@@ -470,7 +470,7 @@ impl Network for Monero {
|
||||
let mut outputs = Vec::with_capacity(txs.len());
|
||||
for mut tx_outputs in txs.drain(..) {
|
||||
for output in tx_outputs.drain(..) {
|
||||
let mut data = output.arbitrary_data().get(0).cloned().unwrap_or(vec![]);
|
||||
let mut data = output.arbitrary_data().first().cloned().unwrap_or(vec![]);
|
||||
|
||||
// The Output serialization code above uses u16 to represent length
|
||||
data.truncate(u16::MAX.into());
|
||||
|
||||
Reference in New Issue
Block a user