From 3bb7e62e88937cc8b53b04b7183de868de344bd5 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 3 Mar 2021 11:47:05 +0100 Subject: [PATCH] zpool parsers: small code cleanup Signed-off-by: Thomas Lamprecht --- src/tools/disks/zpool_status.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tools/disks/zpool_status.rs b/src/tools/disks/zpool_status.rs index 4783a709..ccc27a2e 100644 --- a/src/tools/disks/zpool_status.rs +++ b/src/tools/disks/zpool_status.rs @@ -124,13 +124,12 @@ fn space_indented_line(indent: usize) -> impl Fn(&str) -> IResult<&str, &str> { loop { if n.starts_with('\t') { len += 8; - n = &n[1..]; } else if n.starts_with(' ') { len += 1; - n = &n[1..]; } else { break; } + n = &n[1..]; if len >= indent { break; } }; if len != indent {