$cargo fmt

write-by-ref
k-nasa 5 years ago
parent 9cede7f1e3
commit 1c798387bf

@ -24,9 +24,9 @@ where
// the map will only resize twice in the worst case. // the map will only resize twice in the worst case.
let additional = if self.is_empty() { let additional = if self.is_empty() {
stream.size_hint().0 stream.size_hint().0
} else { } else {
(stream.size_hint().0 + 1) / 2 (stream.size_hint().0 + 1) / 2
}; };
self.reserve(additional); self.reserve(additional);

@ -27,9 +27,9 @@ where
// the map will only resize twice in the worst case. // the map will only resize twice in the worst case.
let additional = if self.is_empty() { let additional = if self.is_empty() {
stream.size_hint().0 stream.size_hint().0
} else { } else {
(stream.size_hint().0 + 1) / 2 (stream.size_hint().0 + 1) / 2
}; };
self.reserve(additional); self.reserve(additional);

Loading…
Cancel
Save