mirror of
https://github.com/async-rs/async-std.git
synced 2025-02-28 07:09:40 +00:00
$cargo fmt
This commit is contained in:
parent
9cede7f1e3
commit
1c798387bf
2 changed files with 4 additions and 4 deletions
|
@ -24,9 +24,9 @@ where
|
|||
// the map will only resize twice in the worst case.
|
||||
|
||||
let additional = if self.is_empty() {
|
||||
stream.size_hint().0
|
||||
stream.size_hint().0
|
||||
} else {
|
||||
(stream.size_hint().0 + 1) / 2
|
||||
(stream.size_hint().0 + 1) / 2
|
||||
};
|
||||
self.reserve(additional);
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ where
|
|||
// the map will only resize twice in the worst case.
|
||||
|
||||
let additional = if self.is_empty() {
|
||||
stream.size_hint().0
|
||||
stream.size_hint().0
|
||||
} else {
|
||||
(stream.size_hint().0 + 1) / 2
|
||||
(stream.size_hint().0 + 1) / 2
|
||||
};
|
||||
self.reserve(additional);
|
||||
|
||||
|
|
Loading…
Reference in a new issue