Skip to content

Commit ccb0410

Browse files
committed
Revert "add size_hint to mpsc receiver"
This reverts commit 0e4dc7d.
1 parent 0e4dc7d commit ccb0410

File tree

1 file changed

+1
-5
lines changed
  • futures-channel/src/mpsc

1 file changed

+1
-5
lines changed

futures-channel/src/mpsc/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ struct UnboundedInner<T> {
282282

283283
#[derive(Debug)]
284284
struct BoundedInner<T> {
285-
// Max buffer size of the channel.
285+
// Max buffer size of the channel. If `None` then the channel is unbounded.
286286
buffer: usize,
287287

288288
// Internal channel state. Consists of the number of messages stored in the
@@ -1125,10 +1125,6 @@ impl<T> Stream for Receiver<T> {
11251125
}
11261126
}
11271127
}
1128-
1129-
fn size_hint(&self) -> (usize, Option<usize>) {
1130-
(0, self.inner.as_ref().map(|i| i.buffer))
1131-
}
11321128
}
11331129

11341130
impl<T> Drop for Receiver<T> {

0 commit comments

Comments
 (0)