diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-29 10:58:39 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-05-29 10:58:39 +0200 |
| commit | deb4948395a2cff13e05596c6f86d2987d706f99 (patch) | |
| tree | 7d397f98160994037a4cf6fc35e38cfb325d2168 /src | |
| parent | 25fc917c65f7c51fafdab0f023772171f84c7f0a (diff) | |
| download | rust-deb4948395a2cff13e05596c6f86d2987d706f99.tar.gz rust-deb4948395a2cff13e05596c6f86d2987d706f99.zip | |
remove the last mention of IoResult
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs b/src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs index 5eecf27db67..5b104d4bb0c 100644 --- a/src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs +++ b/src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs @@ -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(); |
