mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Fix mismatched types
This commit is contained in:
parent
50bc1cd1ab
commit
4ec8faab11
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ impl Collection {
|
||||||
card.desired_retention = desired_retention;
|
card.desired_retention = desired_retention;
|
||||||
card.decay = decay;
|
card.decay = decay;
|
||||||
if let Some(item) = &item {
|
if let Some(item) = &item {
|
||||||
card.set_memory_state(&fsrs, item, historical_retention.unwrap())?;
|
card.set_memory_state(&fsrs, Some(item.clone()), historical_retention.unwrap())?;
|
||||||
// if rescheduling
|
// if rescheduling
|
||||||
if let Some(reviews) = &last_revlog_info {
|
if let Some(reviews) = &last_revlog_info {
|
||||||
// and we have a last review time for the card
|
// and we have a last review time for the card
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue