Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Mar 5, 2021
1 parent c7da219 commit 0dc0c7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(),
}
}
Expand Down
4 changes: 3 additions & 1 deletion test-nostd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dc0c7b

Please sign in to comment.