fix: do not handle nil value case

Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
Erica Marigold 2023-09-27 16:51:48 +05:30 committed by GitHub
parent a480c1dc8e
commit 632ba9984c
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!(