Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

refactor(rome_cli): refactor the threading of parallel traversal to increase occupancy #3577

Merged
merged 2 commits into from
Nov 7, 2022
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
4 changes: 1 addition & 3 deletions crates/rome_cli/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use rome_service::workspace::{
use std::path::PathBuf;

/// Useful information during the traversal of files and virtual content
#[derive(Clone)]
pub(crate) struct Execution {
/// How the information should be collected and reported
report_mode: ReportMode,
Expand All @@ -18,7 +17,6 @@ pub(crate) struct Execution {
traversal_mode: TraversalMode,
}

#[derive(Clone)]
pub(crate) enum TraversalMode {
/// This mode is enabled when running the command `rome check`
Check {
Expand Down Expand Up @@ -47,7 +45,7 @@ pub(crate) enum TraversalMode {
}

/// Tells to the execution of the traversal how the information should be reported
#[derive(Clone, Default)]
#[derive(Copy, Clone, Default)]
pub(crate) enum ReportMode {
/// Reports information straight to the console, it's the default mode
#[default]
Expand Down
Loading