From ecf5c9db44e3ac3a95d4a20e02d0543b255dfacc Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sun, 20 Aug 2023 20:58:28 -0500 Subject: [PATCH] Replace result with expect for process.spawn --- src/lune/builtins/process/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lune/builtins/process/mod.rs b/src/lune/builtins/process/mod.rs index e368a93..09e7291 100644 --- a/src/lune/builtins/process/mod.rs +++ b/src/lune/builtins/process/mod.rs @@ -169,7 +169,7 @@ async fn process_spawn( // different thread if necessary, and wait let (status, stdout, stderr) = task::spawn(spawn_command(program, args, options)) .await - .into_lua_err()??; + .expect("Spawned process should not be cancellable")?; // NOTE: If an exit code was not given by the child process, // we default to 1 if it yielded any error output, otherwise 0