Skip to content

Set type when purposely discarding return type #1202

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

Closed
wants to merge 1 commit into from

Conversation

kraktus
Copy link

@kraktus kraktus commented May 4, 2022

Raised by rust-lang/rust-clippy#6841, as it is safer in case of refactoring.

It does not catch all, and for complex type return is probably not worth it in terms of readability but still think it's a good addition.

Wording can probably be improved.

Raised by rust-lang/rust-clippy#6841, as it is safer in case of refactoring
@kraktus kraktus changed the title Set type when purposely discarding result Set type when purposely discarding return type May 4, 2022
@ehuss
Copy link
Contributor

ehuss commented May 5, 2022

Thanks for the PR! I would prefer to not include too many style suggestions in the reference. There are too many guidelines to add here, and there is not a specific process for deciding guidelines on how Rust code should be written. Something like this would probably be better served in something like clippy.

@ehuss ehuss closed this May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants