1
Fork 0

Fix a code formatting issue in json.rs

This commit is contained in:
Nicolas Silva 2014-04-07 17:40:45 +02:00
parent cd3b54a3f1
commit 18bed22e5a

View file

@ -2854,7 +2854,8 @@ mod tests {
A(f64),
B(~str)
}
fn check_err<T: Decodable<Decoder, DecoderError>>(to_parse: &'static str, expected: DecoderError) {
fn check_err<T: Decodable<Decoder, DecoderError>>(to_parse: &'static str,
expected: DecoderError) {
let res: DecodeResult<T> = match from_str(to_parse) {
Err(e) => Err(ParseError(e)),
Ok(json) => Decodable::decode(&mut Decoder::new(json))