mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 23:27:59 +00:00
silence some warnings
This commit is contained in:
@@ -40,8 +40,6 @@ mod decoder {
|
||||
|
||||
enum State {
|
||||
AnimalState(Animal),
|
||||
DogState,
|
||||
FrogState,
|
||||
IntState(int),
|
||||
StringState(String),
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ mod deserializer {
|
||||
CharState(char),
|
||||
StringState(String),
|
||||
OptionState(bool),
|
||||
TupleState(uint),
|
||||
//TupleState(uint),
|
||||
VecState(Vec<Inner>),
|
||||
MapState(HashMap<String, Option<char>>),
|
||||
EndState,
|
||||
@@ -344,7 +344,7 @@ mod deserializer {
|
||||
}
|
||||
Some(Ok(de::MapStart(len)))
|
||||
}
|
||||
Some(TupleState(len)) => Some(Ok(de::TupleStart(len))),
|
||||
//Some(TupleState(len)) => Some(Ok(de::TupleStart(len))),
|
||||
Some(NullState) => Some(Ok(de::Null)),
|
||||
Some(UintState(x)) => Some(Ok(de::Uint(x))),
|
||||
Some(CharState(x)) => Some(Ok(de::Char(x))),
|
||||
|
||||
@@ -395,6 +395,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[deriving(Show)]
|
||||
#[allow(dead_code)]
|
||||
enum Error {
|
||||
EndOfStream,
|
||||
SyntaxError,
|
||||
|
||||
Reference in New Issue
Block a user