fix a clippy lint in 1.56
This commit is contained in:
parent
048a9a2b60
commit
61f3b71664
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user