Ensure all data is written to stdout in play

This commit is contained in:
Marcin Kulik
2024-01-02 17:32:58 +01:00
parent 6e380cf245
commit da8f55d343

View File

@@ -20,7 +20,7 @@ pub fn play(input: impl io::Read) -> Result<()> {
thread::sleep(Duration::from_micros(diff as u64)); thread::sleep(Duration::from_micros(diff as u64));
} }
stdout.write(data.as_bytes())?; stdout.write_all(data.as_bytes())?;
} }
Ok(()) Ok(())