Utilize Result::unwrap_err
in more places.
This commit is contained in:
parent
50909f2d50
commit
62b19c627e
13 changed files with 22 additions and 22 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue