From cc58ca01a53bec922775a840c21964727aa15139 Mon Sep 17 00:00:00 2001 From: Nick Groenen Date: Thu, 24 Dec 2020 00:05:36 +0100 Subject: [PATCH] Include filter_fn field in WalkOptions debug display --- src/walker.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/walker.rs b/src/walker.rs index c2e9330..9b8b4f5 100644 --- a/src/walker.rs +++ b/src/walker.rs @@ -33,10 +33,15 @@ pub struct WalkOptions<'a> { impl<'a> fmt::Debug for WalkOptions<'a> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + let filter_fn_fmt = match self.filter_fn { + Some(_) => "", + None => "", + }; f.debug_struct("WalkOptions") .field("ignore_filename", &self.ignore_filename) .field("ignore_hidden", &self.ignore_hidden) .field("honor_gitignore", &self.honor_gitignore) + .field("filter_fn", &filter_fn_fmt) .finish() } }