ignore: add Clone/Debug for builders

This commit is contained in:
FlorentBecker 2018-04-05 14:06:26 +02:00 committed by Andrew Gallant
parent 34abed597f
commit c4dd927a13
2 changed files with 2 additions and 0 deletions

View File

@ -441,6 +441,7 @@ impl GlobSet {
/// GlobSetBuilder builds a group of patterns that can be used to /// GlobSetBuilder builds a group of patterns that can be used to
/// simultaneously match a file path. /// simultaneously match a file path.
#[derive(Clone, Debug)]
pub struct GlobSetBuilder { pub struct GlobSetBuilder {
pats: Vec<Glob>, pats: Vec<Glob>,
} }

View File

@ -301,6 +301,7 @@ impl Gitignore {
} }
/// Builds a matcher for a single set of globs from a .gitignore file. /// Builds a matcher for a single set of globs from a .gitignore file.
#[derive(Clone, Debug)]
pub struct GitignoreBuilder { pub struct GitignoreBuilder {
builder: GlobSetBuilder, builder: GlobSetBuilder,
root: PathBuf, root: PathBuf,