You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have assumed that cargo fmt is idempotent, i.e. that calling after calling it once the code remains unchanged. (IHMO my example code does not need reformatting in any case.)
Uh oh!
There was an error while loading. Please reload this page.
Given this source:
Call
cargo fmt
(tested with +stable =1.87.0
and +nightly =1.89.0-nightly (056f5f4f3 2025-05-09)
).The indentation level of
add = ... )]
is incremented by 8 spaces for every fmt invocation until the 100 character line limit is hit.Source after multiple `cargo fmt` calls (click me)
I would have assumed that
cargo fmt
is idempotent, i.e. that calling after calling it once the code remains unchanged. (IHMO my example code does not need reformatting in any case.)It can be tested on the playground, too:
The text was updated successfully, but these errors were encountered: