We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fmt
1 parent bf36b17 commit d3e01a6Copy full SHA for d3e01a6
src/cargo-fmt/main.rs
@@ -61,7 +61,9 @@ const SUCCESS: i32 = 0;
61
const FAILURE: i32 = 1;
62
63
fn execute() -> i32 {
64
- let opts = Opts::from_args();
+ // Drop extra `fmt` argument provided by `cargo`.
65
+ let args = env::args().filter(|x| x != "fmt");
66
+ let opts = Opts::from_iter(args);
67
68
let verbosity = match (opts.verbose, opts.quiet) {
69
(false, false) => Verbosity::Normal,
0 commit comments