silence some warnings

This commit is contained in:
Erick Tryzelaar 2014-10-22 18:10:40 -07:00
parent 0b8324ae09
commit 292a820e3a
3 changed files with 3 additions and 4 deletions

View File

@ -40,8 +40,6 @@ mod decoder {
enum State {
AnimalState(Animal),
DogState,
FrogState,
IntState(int),
StringState(String),
}

View File

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

View File

@ -395,6 +395,7 @@ mod tests {
}
#[deriving(Show)]
#[allow(dead_code)]
enum Error {
EndOfStream,
SyntaxError,