Closed LeoniePhiline closed 1 year ago
Both fixes are included in 0.4, not 0.3 that you are using.
@taiki-e There is no 0.4?
Not on GitHub releases, no branch, no tag, not on crates.io, not in the futures-rs blog …
Where is 0.4 and why can’t I find it?
There was a "fix" (panic - not preferred) in the past:
This
assert!
was later removed:I am not sure if this was intentional.
The following project hangs indefinitely:
Cargo.toml
src/main.rs
With a minimum
buffered
value of1
, the program finishes.I believe
n = 0
should not panic, as the oldassert!
solution did, but it should pass through directly without buffering.(Could be worked around by lower-clamping
n
to1
inBuffered::new
, but I am certain there is a cleaner way.)