Skip to content

Commit

Permalink
Fix/add-panic-message-for-invalid-FSRSItem (#249)
Browse files Browse the repository at this point in the history
* Fix/add-panic-message-for-invalid-FSRSItem
  • Loading branch information
L-M-Sherlock authored Oct 29, 2024
1 parent 3721cdf commit c45637d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl FSRSItem {
.reviews
.iter()
.find(|review| review.delta_t > 0)
.unwrap()
.expect("Invalid FSRS item: at least one review with delta_t > 0 is required")
}

pub(crate) fn r_matrix_index(&self) -> (u32, u32, u32) {
Expand Down

0 comments on commit c45637d

Please sign in to comment.