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

Revert "Put single-expression functions on a single line" #442

Merged
merged 1 commit into from
Feb 27, 2022

Commits on Feb 27, 2022

  1. Revert "Put single-expression functions on a single line"

    This reverts commit 4ce32d6.
    
    Changing the default formatting using an unstable `rustfmt` feature
    was a bad idea: it means that people who have auto-formatting turned
    on (like me) will see the formatting flip-flop when switching between
    stable and nightly.
    
    The problem is that the unstable `fn_single_line` option only takes
    effect on nightly, so when `rustfmt` runs on stable, it will add lots
    of spurious changes.
    
    The `imports_granularity` option does not have this problem: `rustfmt`
    will not modify imports by default and so nothing happens when it is
    run on stable.
    mgeisler committed Feb 27, 2022
    Configuration menu
    Copy the full SHA
    99154ae View commit details
    Browse the repository at this point in the history