More cleanup during review

This commit is contained in:
Isaac Clayton 2022-07-11 10:56:21 +02:00
parent 5ec828a3e2
commit 14bccb4a90
9 changed files with 16 additions and 122 deletions

View file

@ -36,8 +36,6 @@ mod tests {
.host_function_async("import_half", |a: u32| async move { a / 2 })
.unwrap()
.host_function_async("command_async", |command: String| async move {
// TODO: actual thing
dbg!(&command);
let mut args = command.split(' ');
let command = args.next().unwrap();
smol::process::Command::new(command)
@ -45,10 +43,7 @@ mod tests {
.output()
.await
.ok()
.map(|output| {
dbg!("Did run command!");
output.stdout
})
.map(|output| output.stdout)
})
.unwrap()
.init(