remove the last mention of IoResult

This commit is contained in:
Tshepang Lekhonkhobe 2015-05-29 10:58:39 +02:00
parent 25fc917c65
commit deb4948395
1 changed files with 2 additions and 4 deletions

View File

@ -17,14 +17,12 @@
use std::slice;
pub type IoResult<T> = Result<T, ()>;
trait MyWriter {
fn my_write(&mut self, buf: &[u8]) -> IoResult<()>;
fn my_write(&mut self, buf: &[u8]) -> Result<(), ()>;
}
impl<'a> MyWriter for &'a mut [u8] {
fn my_write(&mut self, buf: &[u8]) -> IoResult<()> {
fn my_write(&mut self, buf: &[u8]) -> Result<(), ()> {
slice::bytes::copy_memory(buf, *self);
let write_len = buf.len();