summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorentBecker <florent.becker@ens-lyon.org>2018-04-05 14:06:26 +0200
committerAndrew Gallant <jamslam@gmail.com>2018-04-05 08:06:26 -0400
commitc4dd927a1348f2252fc3a8dbb7f96f93dc171d51 (patch)
treef8919b9cfbe4c741acf30782c0d1e875398cbadf
parent34abed597fd119fbe6ca4fe0a820808d980f46c9 (diff)
ignore: add Clone/Debug for builders
-rw-r--r--globset/src/lib.rs1
-rw-r--r--ignore/src/gitignore.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/globset/src/lib.rs b/globset/src/lib.rs
index 17292b06..eabed515 100644
--- a/globset/src/lib.rs
+++ b/globset/src/lib.rs
@@ -441,6 +441,7 @@ impl GlobSet {
/// GlobSetBuilder builds a group of patterns that can be used to
/// simultaneously match a file path.
+#[derive(Clone, Debug)]
pub struct GlobSetBuilder {
pats: Vec<Glob>,
}
diff --git a/ignore/src/gitignore.rs b/ignore/src/gitignore.rs
index 83392e1e..67d5a752 100644
--- a/ignore/src/gitignore.rs
+++ b/ignore/src/gitignore.rs
@@ -301,6 +301,7 @@ impl Gitignore {
}
/// Builds a matcher for a single set of globs from a .gitignore file.
+#[derive(Clone, Debug)]
pub struct GitignoreBuilder {
builder: GlobSetBuilder,
root: PathBuf,