diff options
| author | Paul Dicker <pitdicker@gmail.com> | 2019-02-11 16:51:32 +0100 |
|---|---|---|
| committer | Paul Dicker <pitdicker@gmail.com> | 2019-02-20 06:37:30 +0100 |
| commit | 06511573f236a07b8ecd7c3e3d5fef1d53e59352 (patch) | |
| tree | e4139c6119839145ee9380c34de3c5736e6bf1dc /src/libstd/sys/wasm/stdio.rs | |
| parent | 74e35d270067afff72034312065c48e6d8cfba67 (diff) | |
| download | rust-06511573f236a07b8ecd7c3e3d5fef1d53e59352.tar.gz rust-06511573f236a07b8ecd7c3e3d5fef1d53e59352.zip | |
Remove sys::*::Stderr Write implementation
Diffstat (limited to 'src/libstd/sys/wasm/stdio.rs')
| -rw-r--r-- | src/libstd/sys/wasm/stdio.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libstd/sys/wasm/stdio.rs b/src/libstd/sys/wasm/stdio.rs index 201619b2fb1..015d3f20660 100644 --- a/src/libstd/sys/wasm/stdio.rs +++ b/src/libstd/sys/wasm/stdio.rs @@ -45,15 +45,6 @@ impl Stderr { } } -impl io::Write for Stderr { - fn write(&mut self, data: &[u8]) -> io::Result<usize> { - (&*self).write(data) - } - fn flush(&mut self) -> io::Result<()> { - (&*self).flush() - } -} - pub const STDIN_BUF_SIZE: usize = 0; pub fn is_ebadf(_err: &io::Error) -> bool { @@ -62,7 +53,7 @@ pub fn is_ebadf(_err: &io::Error) -> bool { pub fn panic_output() -> Option<impl io::Write> { if cfg!(feature = "wasm_syscall") { - Stderr::new().ok() + io::stderr_raw().ok() } else { None } |
