mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 14:57:59 +00:00
update to rust HEAD, switch to rustc_serialize
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ use std::io;
|
||||
use de::{Token, TokenKind};
|
||||
|
||||
/// The errors that can arise while parsing a JSON stream.
|
||||
#[deriving(Clone, PartialEq)]
|
||||
#[derive(Clone, PartialEq)]
|
||||
pub enum ErrorCode {
|
||||
ConversionError(Token),
|
||||
EOFWhileParsingList,
|
||||
@@ -78,7 +78,7 @@ impl fmt::Show for ErrorCode {
|
||||
}
|
||||
}
|
||||
|
||||
#[deriving(Clone, PartialEq, Show)]
|
||||
#[derive(Clone, PartialEq, Show)]
|
||||
pub enum Error {
|
||||
/// msg, line, col
|
||||
SyntaxError(ErrorCode, uint, uint),
|
||||
|
||||
Reference in New Issue
Block a user