From d86f69cd355ae782c7e695f3b56a1a95b6c4c0fd Mon Sep 17 00:00:00 2001 From: Adam McDaniel Date: Sun, 15 Oct 2023 20:32:00 -0400 Subject: [PATCH] Fixed bug where `None`s were included in args --- src/expr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/expr.rs b/src/expr.rs index 58135ce..779a215 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -510,6 +510,7 @@ impl Expression { match flattened_arg { Self::String(s) => cmd_args.push(s), Self::Bytes(b) => cmd_args.push(String::from_utf8_lossy(&b).to_string()), + Self::None => continue, _ => cmd_args.push(format!("{}", flattened_arg)), } }