Skip to content

style: fn single line - #511

Open
alejandro-vaz wants to merge 1 commit into
servo:v2from
alejandro-vaz:fnsingle
Open

style: fn single line#511
alejandro-vaz wants to merge 1 commit into
servo:v2from
alejandro-vaz:fnsingle

Conversation

@alejandro-vaz

@alejandro-vaz alejandro-vaz commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

this PR sets fn_single_line to true on rustfmt.toml, which makes small functions occupy one line instead of three provided that it does not exceed maximum line column (set to 100)

it saves ~160 LOC in our codebase

the counterargument is that it may compress code and hurt readability

@alejandro-vaz
alejandro-vaz requested a review from jdm August 30, 2026 17:18
@alejandro-vaz alejandro-vaz self-assigned this Aug 30, 2026
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.

1 participant