diff --git a/src/json/error.rs b/src/json/error.rs index 430b0b04..63601666 100644 --- a/src/json/error.rs +++ b/src/json/error.rs @@ -95,7 +95,7 @@ impl error::Error for Error { fn description(&self) -> &str { match *self { Error::SyntaxError(..) => "syntax error", - Error::IoError(ref error) => error.description(), + Error::IoError(ref error) => error::Error::description(error), /* Error::ExpectedError(ref expected, _) => &expected, */ diff --git a/src/lib.rs b/src/lib.rs index 102a272b..85fd10c5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(core, io, path, std_misc, unicode)] +#![feature(core, io, std_misc, unicode)] extern crate unicode;