1
Fork 0

Utilize Result::unwrap_err in more places.

This commit is contained in:
Corey Farwell 2016-05-06 19:32:18 -04:00
parent 50909f2d50
commit 62b19c627e
13 changed files with 22 additions and 22 deletions

View file

@ -3948,7 +3948,7 @@ mod tests {
let mut mem_buf = string::String::new();
let mut encoder = Encoder::new(&mut mem_buf);
let result = hm.encode(&mut encoder);
match result.err().unwrap() {
match result.unwrap_err() {
EncoderError::BadHashmapKey => (),
_ => panic!("expected bad hash map key")
}