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

option_if_let_else: do not trigger on expressions returning () #11896

Merged
merged 1 commit into from
Nov 30, 2023

Commits on Nov 29, 2023

  1. option_if_let_else: do not trigger on expressions returning ()

    Fix rust-lang#11893
    
    Trigerring on expressions returning `()` uses the arguments of the
    `map_or_else()` rewrite only for their side effects. This does lead
    to code which is harder to read than the original.
    samueltardieu committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    e3c73f1 View commit details
    Browse the repository at this point in the history