Skip to content

Review single line where clauses diffs #197

Closed
@calebcartwright

Description

@calebcartwright

rust-lang/rust#119515 modified the Style Guide for 2024 to switch to single line formatting for type aliases and body-less functions with rules that included some new "short" thresholds.

This has been implemented in rustfmt with some suggested values for those "short" thresholds, with some examples shown in https://rust-lang.zulipchat.com/#narrow/channel/346005-t-style/topic/single.20line.20where.20clauses

Similar to exercises we've done with other 2024 changes, I'd like to review the formatting results under the new rules and thresholds to (a) confirm it's what the team wants and (b) see if there's any t-style input on those "short" thresholds

(sidebar but I will add that there was a comment from outside the team that expressed a dislike for the single line functions when the function had a return type)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions