Update Rust nightly

Supersedes #368.

Adds exceptions for unwrap_or_default due to preference against Default's
ambiguity.
This commit is contained in:
Luke Parker
2023-09-02 01:19:48 -04:00
parent cd4c3a6c88
commit f7e49e1f90
6 changed files with 10 additions and 1 deletions

View File

@@ -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