-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add io::cursor #167
add io::cursor #167
Conversation
Why is the |
@stjepang yeah, not sure -- I can't get the borrow checker to allow it. If you want to take a look that'd definitely be helpful. |
@yoshuawuyts it needs to use Pin::get_mut Poll::Ready(io::BufRead::fill_buf(&mut self.get_mut().inner)) https://github.com/rust-lang-nursery/futures-rs/blob/master/futures-io/src/lib.rs#L599 |
@taiki-e that did the trick! -- thanks so much! |
Signed-off-by: Yoshua Wuyts <[email protected]>
Signed-off-by: Yoshua Wuyts <[email protected]>
Signed-off-by: Yoshua Wuyts <[email protected]>
Signed-off-by: Yoshua Wuyts <[email protected]>
83d7d45
to
3b8e604
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! :)
bors r+ |
167: add io::cursor r=stjepang a=yoshuawuyts Adds `io::Cursor` and makes it so `io::prelude::*` behaves the way it does in std (so it can actually be implemented - though this might just have been a bug on my side??). Ref #131. Thanks! Co-authored-by: Yoshua Wuyts <[email protected]>
Build succeeded
|
Adds
io::Cursor
and makes it soio::prelude::*
behaves the way it does in std (so it can actually be implemented - though this might just have been a bug on my side??).Ref #131. Thanks!