summaryrefslogtreecommitdiffstats
path: root/crates/globset/src/glob.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/globset/src/glob.rs')
-rw-r--r--crates/globset/src/glob.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/globset/src/glob.rs b/crates/globset/src/glob.rs
index 71cd8bbb..6e35aeec 100644
--- a/crates/globset/src/glob.rs
+++ b/crates/globset/src/glob.rs
@@ -143,8 +143,6 @@ impl GlobMatcher {
struct GlobStrategic {
/// The match strategy to use.
strategy: MatchStrategy,
- /// The underlying pattern.
- pat: Glob,
/// The pattern, as a compiled regex.
re: Regex,
}
@@ -273,7 +271,7 @@ impl Glob {
let strategy = MatchStrategy::new(self);
let re =
new_regex(&self.re).expect("regex compilation shouldn't fail");
- GlobStrategic { strategy: strategy, pat: self.clone(), re: re }
+ GlobStrategic { strategy: strategy, re: re }
}
/// Returns the original glob pattern used to build this pattern.