[Feat]: Provide a way to automatically fix lints with --fix
flag
#296
Labels
A-marker-cargo
Area: All things connected to `cargo_marker`
C-enhancement
Category: New feature or request
Summary
If
cargo marker
is supplied with a--fix
flag, then it should invokecargo fix
to automatically apply the suggestions.Other flags from
cargo fix
should be reexposed like--allow-dirty
,--allow-staged
Workaround
One may mimic the
cargo fix
behavior using this script, but beware that this script uses an unstable and undocumented commandcargo marker test-setup
so it may not work in the future.env -S $(cargo marker test-setup | grep -oP 'env:\K.*') cargo fix
The text was updated successfully, but these errors were encountered: