From b80279d4fb8a8a106ceb3290886c4a98b20aa42c Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 26 Aug 2024 21:29:06 +0200 Subject: fix formatting --- src/event.rs | 10 ++++++---- src/gamedata.rs | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/event.rs b/src/event.rs index 609992b..0a904bc 100644 --- a/src/event.rs +++ b/src/event.rs @@ -550,10 +550,12 @@ fn get_api_guild_string(bytes: &[u8; 16]) -> Option { ]; let result = PACKS .iter() - .map(|p| p.iter().fold(String::new(), |mut output, i| { - let _ = write!(output, "{:02X}", bytes[*i]); - output - })) + .map(|p| { + p.iter().fold(String::new(), |mut output, i| { + let _ = write!(output, "{:02X}", bytes[*i]); + output + }) + }) .collect::>() .join("-"); Some(result) diff --git a/src/gamedata.rs b/src/gamedata.rs index a608346..c6f3040 100644 --- a/src/gamedata.rs +++ b/src/gamedata.rs @@ -1213,7 +1213,10 @@ mod tests { assert!(Ankka.partial_cmp(&Dragonvoid).is_none()); - assert_eq!(ValeGuardian.partial_cmp(&ValeGuardian), Some(Ordering::Equal)); + assert_eq!( + ValeGuardian.partial_cmp(&ValeGuardian), + Some(Ordering::Equal) + ); assert_eq!(Slothasor.partial_cmp(&Slothasor), Some(Ordering::Equal)); assert_eq!(Ai.partial_cmp(&Ai), Some(Ordering::Equal)); } -- cgit v1.2.3