Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

added #[must_use] for impl Future structs #31

Merged
merged 4 commits into from
May 15, 2019
Merged

added #[must_use] for impl Future structs #31

merged 4 commits into from
May 15, 2019

Conversation

ibaryshnikov
Copy link
Member

Closes #30

Did I cover all the required cases?

Copy link
Collaborator

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you tag futures with #[must_use = "futures do nothing unless polled"], and streams with #[must_use = "streams do nothing unless polled"]? ty ty!

@ibaryshnikov
Copy link
Member Author

Thank you for your help! I covered struct which impls Stream.
I guess, there's nothing special about TcpStream, right?
https://github.com/rustasync/runtime/blob/master/runtime-raw/src/tcp.rs#L10

Copy link
Collaborator

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

@yoshuawuyts
Copy link
Collaborator

This is excellent. rust-lang/rust#60797 was filed yesterday. Perhaps we should follow suit? Probably should do that in a follow-up PR (:

@yoshuawuyts yoshuawuyts merged commit 51e45c6 into rustasync:master May 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add #[must_use] everywhere
2 participants