Fix a code formatting issue in json.rs
This commit is contained in:
parent
cd3b54a3f1
commit
18bed22e5a
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue