Skip to content

Commit 1bfeb4a

Browse files
committed
Update for stabilized io::Error
As per rust-lang/rust#23919, the last argument was removed from Error::new. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 284d498 commit 1bfeb4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
225225
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
226226
html_root_url = "http://doc.rust-lang.org/rand/")]
227-
#![feature(core, io, step_by)]
227+
#![feature(step_by)]
228228

229229
#![cfg_attr(test, feature(test))]
230230

src/read.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> {
6868
while buf.len() > 0 {
6969
match try!(r.read(buf)) {
7070
0 => return Err(io::Error::new(io::ErrorKind::Other,
71-
"end of file reached", None)),
71+
"end of file reached")),
7272
n => buf = &mut mem::replace(&mut buf, &mut [])[n..],
7373
}
7474
}

0 commit comments

Comments
 (0)