Skip to content

Commit a9328f3

Browse files
committed
Update for stabilized io::Error
As per rust-lang/rust#23919, the last argument was removed from Error::new, and the Clone, Eq, and PartialEq traits were removed from Error. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 331cfa6 commit a9328f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ assert_eq!(wtr, vec![5, 2, 0, 3]);
4141

4242
#![deny(missing_docs)]
4343

44-
#![feature(io)]
4544
#![cfg_attr(test, feature(test))]
4645

4746
use std::mem::transmute;

src/new.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub type Result<T> = result::Result<T, Error>;
1515
///
1616
/// Note that this error is also used for the `write` methods to keep things
1717
/// consistent.
18-
#[derive(Clone, Debug, Eq, PartialEq)]
18+
#[derive(Debug)]
1919
pub enum Error {
2020
/// An unexpected EOF.
2121
///
@@ -35,7 +35,7 @@ impl From<Error> for io::Error {
3535
match err {
3636
Error::Io(err) => err,
3737
Error::UnexpectedEOF => io::Error::new(io::ErrorKind::Other,
38-
"unexpected EOF", None)
38+
"unexpected EOF")
3939
}
4040
}
4141
}

0 commit comments

Comments
 (0)