From 30d3ab1b9a15e801c148d590ed19105f8d83b5bb Mon Sep 17 00:00:00 2001 From: junlu592 Date: Mon, 1 Dec 2025 18:29:58 +0100 Subject: [PATCH] reverted changes made to unrelated files --- rslib/src/config/bool.rs | 7 +++++-- rslib/src/revlog/mod.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rslib/src/config/bool.rs b/rslib/src/config/bool.rs index 8e4076175..c76787cb0 100644 --- a/rslib/src/config/bool.rs +++ b/rslib/src/config/bool.rs @@ -59,8 +59,11 @@ pub enum BoolKey { /// This is a workaround for old clients that used ints to represent boolean /// values. For new config items, prefer using a bool directly. #[derive(Deserialize, Default)] -#[allow(dead_code)] -struct BoolLike(#[serde(deserialize_with = "deserialize_bool_from_anything")] bool); +struct BoolLike( + #[serde(deserialize_with = "deserialize_bool_from_anything")] + #[allow(dead_code)] + bool, +); impl Collection { pub fn get_config_bool(&self, key: BoolKey) -> bool { diff --git a/rslib/src/revlog/mod.rs b/rslib/src/revlog/mod.rs index 3e22890b1..fbb9b459a 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 {