Skip to content

Commit

Permalink
Tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Mar 4, 2024
1 parent c22d2ec commit 3386cd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/turborepo-repository/src/change_mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ pub enum PackageDetection {
Package(WorkspacePackage),
}

/// Detects if a file is in a package. Can return the package
/// Detects which packages are affected by a file change. This can be a single
/// package (`Package`), none of the packages (`None`), or all of the packages
/// (`All`).
pub trait PackageDetector {
fn detect_package(&self, file: &AnchoredSystemPath) -> PackageDetection;
}
Expand Down Expand Up @@ -72,7 +74,7 @@ pub enum LockfileChange {
WithContent(Vec<u8>),
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub enum PackageChanges {
All,
Some(HashSet<WorkspacePackage>),
Expand Down

0 comments on commit 3386cd3

Please sign in to comment.