aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/event.rs10
-rw-r--r--src/gamedata.rs5
2 files changed, 10 insertions, 5 deletions
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<String> {
];
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::<Vec<String>>()
.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));
}