Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/oxfmt/src/cli/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn mode() -> impl bpaf::Parser<Mode> {
}

/// Format output mode
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy)]
pub enum OutputMode {
/// Default - when no output option is specified, behaves like `--write` mode in Prettier
Write,
Expand Down
3 changes: 1 addition & 2 deletions apps/oxfmt/src/cli/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,11 @@ impl CliRunner {
let source_formatter = source_formatter.with_external_formatter(self.external_formatter);

let no_config = config_resolver.config_dir().is_none() && editorconfig_path.is_none();
let format_mode_clone = format_mode.clone();

// Spawn a thread to run formatting service with streaming entries
rayon::spawn(move || {
let format_service =
FormatService::new(cwd, format_mode_clone, source_formatter, config_resolver);
FormatService::new(cwd, format_mode, source_formatter, config_resolver);
format_service.run_streaming(rx_entry, &tx_error, &tx_success);
});

Expand Down
Loading