1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-03 14:32:22 +02:00

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
/// simultaneously match a file path.
#[derive(Clone, Debug)]
pub struct GlobSetBuilder {
pats: Vec<Glob>,
}

View File

@ -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,