Skip to content
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

#[must_use] all the things! #1809

Merged
merged 2 commits into from
Mar 3, 2023
Merged

#[must_use] all the things! #1809

merged 2 commits into from
Mar 3, 2023

Conversation

davidpdrsn
Copy link
Member

This adds #[must_use] to all response types, Router, MethodRouter, and middleware. If you make one of those and don't use it, it's probably a bug. Its probably mostly an issue in handlers where things need to be returned to be converted into responses.

@davidpdrsn davidpdrsn force-pushed the david/must-use-all-the-things branch from bc6b420 to 42b853a Compare March 3, 2023 12:06
@davidpdrsn davidpdrsn merged commit 5606ea3 into main Mar 3, 2023
@davidpdrsn davidpdrsn deleted the david/must-use-all-the-things branch March 3, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants