silence some warnings
This commit is contained in:
parent
0b8324ae09
commit
292a820e3a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user