From 632ba9984c8efcec87f2ca6a9abc66a0ed21ae12 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 27 Sep 2023 16:51:48 +0530 Subject: [PATCH] fix: do not handle `nil` value case Co-authored-by: Filip Tibell --- src/lune/builtins/process/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lune/builtins/process/options.rs b/src/lune/builtins/process/options.rs index 2a2d679..316f6c9 100644 --- a/src/lune/builtins/process/options.rs +++ b/src/lune/builtins/process/options.rs @@ -138,7 +138,7 @@ impl<'lua> FromLua<'lua> for ProcessSpawnOptions { If we have stdin contents, we need to pass those to the child process */ match value.get("stdin")? { - LuaValue::Nil => this.stdin = None, + LuaValue::Nil => {}, LuaValue::String(s) => this.stdin = Some(s.to_string_lossy().to_string()), value => { return Err(LuaError::RuntimeError(format!(