diff options
author | FlorentBecker <florent.becker@ens-lyon.org> | 2018-04-05 14:06:26 +0200 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-04-05 08:06:26 -0400 |
commit | c4dd927a1348f2252fc3a8dbb7f96f93dc171d51 (patch) | |
tree | f8919b9cfbe4c741acf30782c0d1e875398cbadf | |
parent | 34abed597fd119fbe6ca4fe0a820808d980f46c9 (diff) |
ignore: add Clone/Debug for builders
-rw-r--r-- | globset/src/lib.rs | 1 | ||||
-rw-r--r-- | ignore/src/gitignore.rs | 1 |
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, |