[cargo fix] unit_arg
removes calls to functions with side-effects
#4741
Labels
A-documentation
Area: Adding or improving documentation
good-first-issue
These issues are a good way to get started with Clippy
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
When running
cargo fix --clippy -Z unstable-options
the following happens:This
will be turned into this
but it should either be turned into this
or not be changed at all.
This behavior results from the unit_arg Lint, so that probably should be changed to no longer being
MachineApplicable
or it's "fixing" logic should be adjusted to produce the above result.I don't know if the "Known problems" section is used for problems when using
cargo fix
, but I think while this is being looked into it might make sense to add this there.Only tested on this version:
The text was updated successfully, but these errors were encountered: