diff options
Diffstat (limited to 'src/poem/recite/ps.rs')
-rw-r--r-- | src/poem/recite/ps.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/poem/recite/ps.rs b/src/poem/recite/ps.rs index 61ed66d..5700ae8 100644 --- a/src/poem/recite/ps.rs +++ b/src/poem/recite/ps.rs @@ -17,7 +17,7 @@ macro_rules! task { .spawn()?; let stdin = child.stdin.as_mut().ok_or(io::ErrorKind::BrokenPipe)?; - stdin.write_all(&$out.as_bytes())?; + stdin.write_all(&$out)?; $out.clear(); child @@ -50,7 +50,7 @@ macro_rules! ctask { .spawn()?; let stdin = child.stdin.as_mut().ok_or(io::ErrorKind::BrokenPipe)?; - stdin.write_all(&$out.as_bytes())?; + stdin.write_all(&$out)?; $out.clear(); child @@ -83,7 +83,7 @@ macro_rules! btask { .spawn()?; let stdin = child.stdin.as_mut().ok_or(io::ErrorKind::BrokenPipe)?; - stdin.write_all(&$out.as_bytes())?; + stdin.write_all(&$out)?; $out.clear(); child @@ -119,7 +119,7 @@ macro_rules! iobtask { .spawn()?; let stdin = child.stdin.as_mut().ok_or(io::ErrorKind::BrokenPipe)?; - stdin.write_all(&$out.as_bytes())?; + stdin.write_all(&$out)?; $out.clear(); child |