mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Update Rust nightly
Supersedes #368. Adds exceptions for unwrap_or_default due to preference against Default's ambiguity.
This commit is contained in:
@@ -179,6 +179,7 @@ impl<N: Network> Scheduler<N> {
|
||||
|
||||
let mut add_plan = |payments| {
|
||||
let amount = payment_amounts(&payments);
|
||||
#[allow(clippy::unwrap_or_default)]
|
||||
self.queued_plans.entry(amount).or_insert(VecDeque::new()).push_back(payments);
|
||||
amount
|
||||
};
|
||||
@@ -394,6 +395,7 @@ impl<N: Network> Scheduler<N> {
|
||||
return;
|
||||
}
|
||||
|
||||
#[allow(clippy::unwrap_or_default)]
|
||||
self.plans.entry(actual).or_insert(VecDeque::new()).push_back(payments);
|
||||
|
||||
// TODO: This shows how ridiculous the serialize function is
|
||||
|
||||
Reference in New Issue
Block a user