Skip to content

Fix FormattingOptions instantiation with Default#135977

Merged
bors merged 1 commit intorust-lang:masterfrom
nyurik:fix-fmt-options
Jan 25, 2025
Merged

Fix FormattingOptions instantiation with Default#135977
bors merged 1 commit intorust-lang:masterfrom
nyurik:fix-fmt-options

Conversation

@nyurik
Copy link
Copy Markdown
Contributor

@nyurik nyurik commented Jan 24, 2025

The fill value by default should be set to ' ' (space), but the current implementation uses #[derive(Default)] which sets it to \0.

Note that FormattingOptions is being released as part of 1.85 (unstable) - so this might warrant a backport to that branch.

Tracking issue: #118117

Follow up from #118159

CC: @EliasHolzmann @programmerjake

r? @m-ou-se

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants