mirror of
https://github.com/ankitects/anki.git
synced 2025-12-12 22:36:55 -05:00
fix a clippy lint in 1.56
This commit is contained in:
parent
048a9a2b60
commit
61f3b71664
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ impl Collection {
|
||||||
.ok_or(AnkiError::NotFound)?;
|
.ok_or(AnkiError::NotFound)?;
|
||||||
let ease = col
|
let ease = col
|
||||||
.get_deck_config(config_id, true)?
|
.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
|
.inner
|
||||||
.initial_ease;
|
.initial_ease;
|
||||||
decks_initial_ease.insert(deck_id, ease);
|
decks_initial_ease.insert(deck_id, ease);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue