From bf3d58aa80c64b05ebceba3a7defb2ea927c0bef Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Fri, 23 Oct 2020 22:32:16 +0100 Subject: [PATCH] a small formatting change --- src/output/details.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/output/details.rs b/src/output/details.rs index f9a1944..a3a33ce 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -256,12 +256,15 @@ impl<'a> Render<'a> { } let mut dir = None; - if let Some(r) = self.recurse { if file.is_directory() && r.tree && ! r.is_too_deep(depth.0) { match file.to_dir() { - Ok(d) => { dir = Some(d); }, - Err(e) => { errors.push((e, None)) }, + Ok(d) => { + dir = Some(d); + } + Err(e) => { + errors.push((e, None)); + } } } };