From 61f3b7166433505183a908735b3fc1be9895bebf Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 22 Oct 2021 12:03:54 +1000 Subject: [PATCH] fix a clippy lint in 1.56 --- rslib/src/scheduler/reviews.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rslib/src/scheduler/reviews.rs b/rslib/src/scheduler/reviews.rs index b7cef5e91..113c54984 100644 --- a/rslib/src/scheduler/reviews.rs +++ b/rslib/src/scheduler/reviews.rs @@ -124,7 +124,8 @@ impl Collection { .ok_or(AnkiError::NotFound)?; let ease = col .get_deck_config(config_id, true)? - .unwrap_or_else(Default::default) // cannot happen + // just for compiler; get_deck_config() is guaranteed to return a value + .unwrap_or_default() .inner .initial_ease; decks_initial_ease.insert(deck_id, ease);