-
Notifications
You must be signed in to change notification settings - Fork 41
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
x11rb-async async functions should have #[must_use]
attributes
#903
Comments
This should probably go for cookies too actually. |
My first thought is "this is not x11rb-async specific, but should rather be a rust ecosystem thing", but I cannot find much compiler or clippy lints that would warn about this. The closest I found are https://rust-lang.github.io/rust-clippy/master/index.html#/let_underscore_future and https://rust-lang.github.io/rust-clippy/master/index.html#/unused_async but neither would exactly hit this case. Actually... the But I just tried this and I couldn't get a warning. Ahh,
I'm not quite sure. The cookie by itself doesn't do much. The request was already sent and there are valid cases for ignoring a cookie. I guess must Edit: Now that I know that this is about boxed futures, I found rust-lang/futures-rs#2017 which leads to rust-lang/rust#67387 and rust-lang/rust#73417 |
At least for |
It is easy to forget to
.await
anasync fn
, and without a#[must_use]
attribute, you won't get a warning for forgetting to do so.The text was updated successfully, but these errors were encountered: