Skip to content

Commit

Permalink
rustfmt can fix anon parameters automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Feb 12, 2017
1 parent 850e3b0 commit cef568c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions text/0000-deprecate-anonymous-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ allow-by-default lint, a clippy lint, and an IntelliJ Rust inspection, but do
not produce compiler warnings by default. This will make the update process more
gradual, but will delay the benefits of deprecation.

### Automatic transition

Rustfmt and IntelliJ Rust can automatically change anonymous parameters to
`_`. However it is better to manually add real names to make it obvious what
name is expected on the `impl` side.

# Drawbacks
[drawbacks]: #drawbacks
Expand Down

0 comments on commit cef568c

Please sign in to comment.