Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
goffrie authored Apr 29, 2024
1 parent accb3e5 commit e4d3b61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ mod tests {
fn io_error_source() {
let err = Error::from_io(io::Error::new(io::ErrorKind::BrokenPipe, "hi"));
let source = err.source().expect("io error should have source");
let io_err = source.downcast_ref::<io::Error>().expect("should be io error");
let io_err = source
.downcast_ref::<io::Error>()
.expect("should be io error");
assert_eq!(io_err.kind(), io::ErrorKind::BrokenPipe);
}
}

0 comments on commit e4d3b61

Please sign in to comment.