Get serde to build, but tests are still failing
This commit is contained in:
parent
ed569bd3f6
commit
b30965ede4
@ -77,7 +77,7 @@ impl fmt::Debug for ErrorCode {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
/// msg, line, col
|
||||
SyntaxError(ErrorCode, usize, usize),
|
||||
@ -139,14 +139,14 @@ impl fmt::Display for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl error::FromError<io::Error> for Error {
|
||||
fn from_error(error: io::Error) -> Error {
|
||||
impl From<io::Error> for Error {
|
||||
fn from(error: io::Error) -> Error {
|
||||
Error::IoError(error)
|
||||
}
|
||||
}
|
||||
|
||||
impl error::FromError<de::value::Error> for Error {
|
||||
fn from_error(error: de::value::Error) -> Error {
|
||||
impl From<de::value::Error> for Error {
|
||||
fn from(error: de::value::Error) -> Error {
|
||||
match error {
|
||||
de::value::Error::SyntaxError => {
|
||||
de::Error::syntax_error()
|
||||
|
@ -6,7 +6,7 @@
|
||||
//! leaving serde to perform roughly the same speed as a hand written serializer for a specific
|
||||
//! type.
|
||||
|
||||
#![feature(collections, convert, core, std_misc, unicode)]
|
||||
#![feature(collections, core, std_misc, unicode)]
|
||||
|
||||
extern crate unicode;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user