aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2024-08-26 21:29:06 +0200
committerDaniel Schadt <kingdread@gmx.de>2024-08-26 21:29:06 +0200
commitb80279d4fb8a8a106ceb3290886c4a98b20aa42c (patch)
treee73941c484520ab23c144efc1bc6676c8cea1ad3 /src
parenta8e05c660059a19994b46a2949d1c79ca4b4d579 (diff)
downloadevtclib-b80279d4fb8a8a106ceb3290886c4a98b20aa42c.tar.gz
evtclib-b80279d4fb8a8a106ceb3290886c4a98b20aa42c.tar.bz2
evtclib-b80279d4fb8a8a106ceb3290886c4a98b20aa42c.zip
fix formatting
Diffstat (limited to 'src')
-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));
}