aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 84ee406..edbfa1d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -26,7 +26,7 @@ async fn run(program: &[String], message: &Publish) -> anyhow::Result<()> {
}
let mut proc = command.stdin(Stdio::piped()).spawn()?;
let mut stdin = proc.stdin.take().context("No stdin")?;
- stdin.write(&message.payload).await?;
+ stdin.write_all(&message.payload).await?;
drop(stdin);
println!("{}", proc.wait().await?);
Ok(())