From 1a4fa75a6162004259bd2d4c7b7ab69a0c0d793a Mon Sep 17 00:00:00 2001 From: user1823 <92206575+user1823@users.noreply.github.com> Date: Sat, 11 Jan 2025 19:04:26 +0530 Subject: [PATCH] Fix error --- rslib/src/scheduler/fsrs/memory_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/scheduler/fsrs/memory_state.rs b/rslib/src/scheduler/fsrs/memory_state.rs index 2f52a04f15..ce72143988 100644 --- a/rslib/src/scheduler/fsrs/memory_state.rs +++ b/rslib/src/scheduler/fsrs/memory_state.rs @@ -86,7 +86,7 @@ impl Collection { let mut card = self.storage.get_card(card_id)?.or_not_found(card_id)?; let original = card.clone(); if let (Some(req), Some(item)) = (&req, item) { - card.set_memory_state(&fsrs, item, historical_retention.unwrap())?; + card.set_memory_state(&fsrs, Some(item), historical_retention.unwrap())?; card.desired_retention = desired_retention; // if rescheduling if let Some(reviews) = &last_revlog_info {