Skip to content

Commit deb4948

Browse files
committed
remove the last mention of IoResult
1 parent 25fc917 commit deb4948

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/run-pass/method-mut-self-modifies-mut-slice-lvalue.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@
1717

1818
use std::slice;
1919

20-
pub type IoResult<T> = Result<T, ()>;
21-
2220
trait MyWriter {
23-
fn my_write(&mut self, buf: &[u8]) -> IoResult<()>;
21+
fn my_write(&mut self, buf: &[u8]) -> Result<(), ()>;
2422
}
2523

2624
impl<'a> MyWriter for &'a mut [u8] {
27-
fn my_write(&mut self, buf: &[u8]) -> IoResult<()> {
25+
fn my_write(&mut self, buf: &[u8]) -> Result<(), ()> {
2826
slice::bytes::copy_memory(buf, *self);
2927

3028
let write_len = buf.len();

0 commit comments

Comments
 (0)