Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
cargo fmt
  • Loading branch information
GuillerLT committed Sep 29, 2023
1 parent 971d348 commit ae54f65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion axum/src/routing/tests/handle_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ async fn handler_multiple_methods_last() {
#[crate::test]
async fn handler_service_ext() {
let fallible_service = tower::service_fn(|_| async { Err::<(), ()>(()) });
let handle_error_service = fallible_service.handle_error(|_| async { StatusCode::INTERNAL_SERVER_ERROR });
let handle_error_service =
fallible_service.handle_error(|_| async { StatusCode::INTERNAL_SERVER_ERROR });

let app = Router::new().route("/", get_service(handle_error_service));

Expand Down

0 comments on commit ae54f65

Please sign in to comment.