Skip to content

Repository: code formatted at 110 columns, with editor settings - #1851

Merged
vmillet-dev merged 1 commit into
dev/1.3.1from
rustfmt-wide
Dec 3, 2026
Merged

vmillet-dev merged 1 commit into
dev/1.3.1from
rustfmt-wide

Conversation

@vmillet-dev

@vmillet-dev vmillet-dev commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Context — The code was wrapped at rustfmt's defaults: 100 columns, and a call, a chain or a struct cut well before that. Asked by the owner: lines are cut although a wide screen has room, within reason.

Change — rustfmt.toml sets 110 columns, filled before they are cut (use_small_heuristics = "Max"), a chain of calls past 80 cut at each call. The Rust goes from 255,700 to 220,600 lines. .editorconfig says the same to an editor, for every kind of file of the repository, and leaves alone what is compared byte for byte or kept as published.

What is not layout, and why:

  • 24 statements take the ; or the method's own name that clippy asks for once their braces moved, and one for_each becomes a for.
  • The 686 reformatted files have the same tokens before and after, commas and braces left out; the cryptography, the key derivation and the file formats included.

cargo test --workspace --exclude e2e (4,132 passed), cargo clippy --workspace --all-targets --all-features -- -D warnings (but for needless_pass_by_value, which only Windows trips) and cargo fmt --all --check ran on Windows.

A commit of its own names this one in .git-blame-ignore-revs once it is merged, so that a blame walks past it.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vmillet-dev vmillet-dev added the refactor Restructuring without behaviour change label Dec 3, 2026
@vmillet-dev
vmillet-dev merged commit 97af2e0 into dev/1.3.1 Dec 3, 2026
45 of 48 checks passed
@vmillet-dev
vmillet-dev deleted the rustfmt-wide branch December 3, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Restructuring without behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant