Skip to content

Commit

Permalink
raw -> raw_glob
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Soltis committed Sep 26, 2023
1 parent c58679d commit ffd6b1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/turborepo-filewatch/src/globwatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ pub struct GlobSet {
pub struct GlobError {
// Boxed to minimize error size
underlying: Box<wax::BuildError>,
raw: String,
raw_glob: String,
}

impl Display for GlobError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}: {}", self.underlying, self.raw)
write!(f, "{}: {}", self.underlying, self.raw_glob)
}
}

Expand All @@ -43,7 +43,7 @@ fn compile_glob(raw: &str) -> Result<Glob<'static>, GlobError> {
.map(|g| g.to_owned())
.map_err(|e| GlobError {
underlying: Box::new(e),
raw: raw.to_owned(),
raw_glob: raw.to_owned(),
})
}

Expand All @@ -69,7 +69,7 @@ impl GlobSet {
let exclude = wax::any(excludes)
.map_err(|e| GlobError {
underlying: Box::new(e),
raw: format!("{{{}}}", raw_excludes.join(",")),
raw_glob: format!("{{{}}}", raw_excludes.join(",")),
})?
.to_owned();
Ok(Self { include, exclude })
Expand Down

0 comments on commit ffd6b1a

Please sign in to comment.