From 3bec8f3f0a35b47a216f7d5e47ee59af5d5b6af3 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 24 Sep 2016 16:27:39 -0400 Subject: [PATCH] Impl Debug for IgnoreDir. --- src/ignore.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ignore.rs b/src/ignore.rs index 01954205..cdb6c996 100644 --- a/src/ignore.rs +++ b/src/ignore.rs @@ -215,6 +215,7 @@ impl Ignore { if !self.no_ignore { for id in self.stack.iter().rev().filter_map(|id| id.as_ref()) { let mat = id.matched(path, is_dir); + // println!("{}, {:?}, {:?}, {:?}\n", path.display(), is_dir, mat, id); if let Some(is_ignored) = self.ignore_match(path, mat) { if is_ignored { return true; @@ -257,6 +258,7 @@ impl Ignore { /// IgnoreDir represents a set of ignore patterns retrieved from a single /// directory. +#[derive(Debug)] pub struct IgnoreDir { /// The path to this directory as given. path: PathBuf,