From 0dc0c7b73de03a56f68f4de1f5d8896985572454 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 4 Mar 2021 17:30:41 -0800 Subject: [PATCH] cargo fmt --- src/map.rs | 2 +- test-nostd/src/lib.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/map.rs b/src/map.rs index e16e064a..3bfaa150 100644 --- a/src/map.rs +++ b/src/map.rs @@ -1665,7 +1665,7 @@ mod tests { let ptr = *e.key() as *const i32; assert_eq!(ptr, k1_ptr); assert_ne!(ptr, k2_ptr); - }, + } Entry::Vacant(_) => panic!(), } } diff --git a/test-nostd/src/lib.rs b/test-nostd/src/lib.rs index d54ade9d..0b57b092 100644 --- a/test-nostd/src/lib.rs +++ b/test-nostd/src/lib.rs @@ -11,7 +11,9 @@ use indexmap::IndexSet; struct BadHasher(u64); impl Hasher for BadHasher { - fn finish(&self) -> u64 { self.0 } + fn finish(&self) -> u64 { + self.0 + } fn write(&mut self, bytes: &[u8]) { for &byte in bytes { self.0 += byte as u64