diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cli/main.rs b/cli/main.rs index 55de5a61e..672668c2a 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -815,20 +815,12 @@ async fn format_command( if fmt_flags.files.len() == 1 && fmt_flags.files[0].to_string_lossy() == "-" { return tools::fmt::format_stdin( - fmt_flags.check, - fmt_flags.ext, + fmt_flags, maybe_fmt_config.map(|c| c.options).unwrap_or_default(), ); } - tools::fmt::format( - fmt_flags.files, - fmt_flags.ignore, - fmt_flags.check, - flags.watch, - maybe_fmt_config, - ) - .await?; + tools::fmt::format(fmt_flags, flags.watch, maybe_fmt_config).await?; Ok(()) } |