From c4dd927a1348f2252fc3a8dbb7f96f93dc171d51 Mon Sep 17 00:00:00 2001 From: FlorentBecker Date: Thu, 5 Apr 2018 14:06:26 +0200 Subject: ignore: add Clone/Debug for builders --- globset/src/lib.rs | 1 + ignore/src/gitignore.rs | 1 + 2 files changed, 2 insertions(+) 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, } 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, -- cgit v1.2.3