mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Fix type mismatch errors
This commit is contained in:
parent
937bb3765b
commit
4c02d0782a
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ impl Collection {
|
|||
let original_interval = card.interval;
|
||||
let interval = fsrs.next_interval(
|
||||
Some(state.stability),
|
||||
desired_retention,
|
||||
desired_retention.unwrap(),
|
||||
0,
|
||||
);
|
||||
card.interval = rescheduler
|
||||
|
|
@ -215,7 +215,7 @@ impl Collection {
|
|||
})
|
||||
} else {
|
||||
card.memory_state = None;
|
||||
card.desired_retention = desired_retention;
|
||||
card.desired_retention = Some(desired_retention);
|
||||
Ok(ComputeMemoryStateResponse {
|
||||
state: None,
|
||||
desired_retention,
|
||||
|
|
|
|||
Loading…
Reference in a new issue