Skip to content

Commit

Permalink
rustfmt: Use show_parse_errors
Browse files Browse the repository at this point in the history
There are no behaviour changes with this patch applied.

In rust-lang/rustfmt#5961 the
`hide_parse_errors` was changed to `show_parse_errors` with default
`true`.

Since we run the formatter with nightly we are getting the following
warning

 Warning: the `hide_parse_errors` option is deprecated. Use
 `show_parse_errors` instead

Rename the variable and keep the default value `true`.
  • Loading branch information
tcharding committed Jul 11, 2024
1 parent 0511f44 commit e2c3694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ color = "Auto"
unstable_features = false
disable_all_formatting = false
skip_children = false
hide_parse_errors = false
show_parse_errors = true
error_on_line_overflow = false
error_on_unformatted = false
emit_mode = "Files"
Expand Down

0 comments on commit e2c3694

Please sign in to comment.