Skip to content

Commit ba70541

Browse files
committed
fmt
1 parent 83219ce commit ba70541

File tree

6 files changed

+290
-123
lines changed

6 files changed

+290
-123
lines changed

src/heapsize.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
extern crate heapsize;
22

3-
use self::heapsize::{HeapSizeOf, heap_size_of};
4-
use std::hash::{Hash, BuildHasher};
3+
use self::heapsize::{heap_size_of, HeapSizeOf};
4+
use std::hash::{BuildHasher, Hash};
55

6-
use {LinkedHashMap, KeyRef, Node};
6+
use {KeyRef, LinkedHashMap, Node};
77

88
impl<K> HeapSizeOf for KeyRef<K> {
99
fn heap_size_of_children(&self) -> usize {
@@ -12,18 +12,20 @@ impl<K> HeapSizeOf for KeyRef<K> {
1212
}
1313

1414
impl<K, V> HeapSizeOf for Node<K, V>
15-
where K: HeapSizeOf,
16-
V: HeapSizeOf
15+
where
16+
K: HeapSizeOf,
17+
V: HeapSizeOf,
1718
{
1819
fn heap_size_of_children(&self) -> usize {
1920
self.key.heap_size_of_children() + self.value.heap_size_of_children()
2021
}
2122
}
2223

2324
impl<K, V, S> HeapSizeOf for LinkedHashMap<K, V, S>
24-
where K: HeapSizeOf + Hash + Eq,
25-
V: HeapSizeOf,
26-
S: BuildHasher
25+
where
26+
K: HeapSizeOf + Hash + Eq,
27+
V: HeapSizeOf,
28+
S: BuildHasher,
2729
{
2830
fn heap_size_of_children(&self) -> usize {
2931
unsafe {

0 commit comments

Comments
 (0)