summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tool/src/commands/mod.rs')
-rw-r--r--tool/src/commands/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs
index 32239d8d..04e84987 100644
--- a/tool/src/commands/mod.rs
+++ b/tool/src/commands/mod.rs
@@ -428,7 +428,7 @@ pub fn split(input: &mut dyn io::Read, prefix: &str)
let old_depth = Some(pp.recursion_depth());
ppr = pp.recurse()?.1;
- let new_depth = ppr.as_ref().map(|pp| pp.recursion_depth());
+ let new_depth = ppr.as_ref().map(|pp| pp.recursion_depth()).ok();
// Update pos.
match old_depth.cmp(&new_depth) {