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

attributes: extract match scrutinee in err-only case #3170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrozycki
Copy link

@mrozycki mrozycki commented Dec 4, 2024

Motivation

A large match scrutinee was causing clippy warnings in users' code. PR #2880 fixed this for the case where both err and ret are present, but the exact same issue occurs with just err present, and that has not been fixed.

Solution

This pull request applies the same fix to the err-only case.

A large match scrutinee was causing clippy warnings. PR tokio-rs#2880
fixed this for the case where both err and ret are present,
but the exact same issue occurs with just err present, and that
has not been fixed.

This pull request applies the same fix to the err-only case.
Copy link
Contributor

@kaffarell kaffarell left a comment

Choose a reason for hiding this comment

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

I missed this in the last PR :/ LGTM though!

Copy link
Contributor

@Rustin170506 Rustin170506 left a comment

Choose a reason for hiding this comment

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

Thanks! :shipit:

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.

3 participants