-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Mark Task
as #[must_use]
#6068
Conversation
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.
Since this would be a breaking change could you write a migration guide?
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.
bors r+
The `async_executor::Task` that it wraps is also `#[must_use]` with the same message. Co-authored-by: devil-ira <[email protected]>
Not technically breaking as it only enables a lint, but I agree on the migration guide. |
Well, our CI broke because of a new lint 😉, but yeah, technically the code would still compile so I guess it doesn't count. |
Not sure what I'd write in the guide. |
Point taken. Don't worry about it. |
Yeah, at first I thought it was a compile error which is why I asked for a migration guide, but since it's just a lint for something that was simply not working before it's less of an issue. |
Pull request successfully merged into main. Build succeeded: |
Task
as #[must_use]
Task
as #[must_use]
The `async_executor::Task` that it wraps is also `#[must_use]` with the same message. Co-authored-by: devil-ira <[email protected]>
The `async_executor::Task` that it wraps is also `#[must_use]` with the same message. Co-authored-by: devil-ira <[email protected]>
The `async_executor::Task` that it wraps is also `#[must_use]` with the same message. Co-authored-by: devil-ira <[email protected]>
The
async_executor::Task
that it wraps is also#[must_use]
with the same message.