diff --git a/rslib/src/revlog/mod.rs b/rslib/src/revlog/mod.rs index fbb9b459a..3e22890b1 100644 --- a/rslib/src/revlog/mod.rs +++ b/rslib/src/revlog/mod.rs @@ -161,7 +161,7 @@ impl Collection { ) -> Result<()> { let ease_factor = u32::from( card.memory_state - .map(|s| ((s.difficulty_shifted() * 1000.) as u16)) + .map(|s| (s.difficulty_shifted() * 1000.) as u16) .unwrap_or(card.ease_factor), ); let entry = RevlogEntry { diff --git a/ts/routes/graphs/reviews.ts b/ts/routes/graphs/reviews.ts index 7255c5ea2..5235939fc 100644 --- a/ts/routes/graphs/reviews.ts +++ b/ts/routes/graphs/reviews.ts @@ -105,7 +105,7 @@ export function renderReviews( break; case GraphRange.Year: xMin = -364; - xMax = 0; + xMax = 0; break; case GraphRange.AllTime: xMin = min(sourceData.reviewCount.keys())!;