fix a clippy lint in 1.56

This commit is contained in:
Damien Elmes 2021-10-22 12:03:54 +10:00
parent 048a9a2b60
commit 61f3b71664

View File

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