From 1bfed56e5e8ccda09b4d7da7d22635b57ba4eb32 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 1 Jan 2024 17:50:18 -0800 Subject: [PATCH] Make sigil stripping from recipe lines less incomprehensible (#1812) --- src/recipe.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/recipe.rs b/src/recipe.rs index 6f03927..7acd1ce 100644 --- a/src/recipe.rs +++ b/src/recipe.rs @@ -195,13 +195,9 @@ impl<'src, D> Recipe<'src, D> { let mut command = evaluated.as_str(); - if quiet_command { - command = &command[1..]; - } + let sigils = usize::from(infallible_command) + usize::from(quiet_command); - if infallible_command { - command = &command[1..]; - } + command = &command[sigils..]; if command.is_empty() { continue;