diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-30 14:37:45 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-03 09:32:34 -0800 |
| commit | e0f0a2f67f6bb66626bb3b7624e7bdb0198a1c47 (patch) | |
| tree | 6858ff0a28395cc09dce05901734cfae52c12078 | |
| parent | 5878b1b76bee774b6d2f2f368ce216d9084d731c (diff) | |
| download | rust-e0f0a2f67f6bb66626bb3b7624e7bdb0198a1c47.tar.gz rust-e0f0a2f67f6bb66626bb3b7624e7bdb0198a1c47.zip | |
rustuv: Remove io_error usage
| -rw-r--r-- | src/librustuv/macros.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustuv/macros.rs b/src/librustuv/macros.rs index 6c8c16784a1..afd36f8ddd1 100644 --- a/src/librustuv/macros.rs +++ b/src/librustuv/macros.rs @@ -33,14 +33,15 @@ pub fn dumb_println(args: &fmt::Arguments) { struct Stderr; impl io::Writer for Stderr { - fn write(&mut self, data: &[u8]) { + fn write(&mut self, data: &[u8]) -> io::IoResult<()> { unsafe { libc::write(libc::STDERR_FILENO, data.as_ptr() as *libc::c_void, data.len() as libc::size_t); } + Ok(()) // just ignore the errors } } let mut w = Stderr; - fmt::writeln(&mut w as &mut io::Writer, args); + let _ = fmt::writeln(&mut w as &mut io::Writer, args); } |
