Get serde to build, but tests are still failing

This commit is contained in:
Erick Tryzelaar 2015-04-02 13:27:57 -07:00
parent ed569bd3f6
commit b30965ede4
2 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -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;