Skip to content

Commit

Permalink
fix: fix feature cfg typo (#855)
Browse files Browse the repository at this point in the history
Co-authored-by: hzlinyiyu <[email protected]>
  • Loading branch information
attila-lin and hzlinyiyu-netease authored Jul 27, 2024
1 parent ef43aae commit 5767707
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions poem/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,11 +1176,11 @@ mod tests {
assert_eq!(err.into_response().status(), StatusCode::BAD_GATEWAY);
}

#[cfg(feature = "eyre6")]
#[cfg(feature = "eyre06")]
#[test]
fn test_eyre6_error() {
let eyre6_err: eyre6::Error = IoError::new(ErrorKind::AlreadyExists, "aaa").into();
let err: Error = Error::from((StatusCode::BAD_GATEWAY, eyre6_err));
fn test_eyre06_error() {
let eyre06_err: eyre06::Error = IoError::new(ErrorKind::AlreadyExists, "aaa").into();
let err: Error = Error::from((StatusCode::BAD_GATEWAY, eyre06_err));
assert!(err.is::<IoError>());
assert_eq!(
err.downcast_ref::<IoError>().unwrap().kind(),
Expand Down

0 comments on commit 5767707

Please sign in to comment.