Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Jul 30, 2020
1 parent 915c7f8 commit e3602c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/function_middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ async fn echo_path<State>(req: tide::Request<State>) -> tide::Result<String> {
#[async_std::test]
async fn route_middleware() {
let mut app = tide::new();
app.at("/protected")
.with(auth_middleware)
.get(echo_path);
app.at("/protected").with(auth_middleware).get(echo_path);
app.at("/unprotected").get(echo_path);

// Protected
Expand Down

0 comments on commit e3602c2

Please sign in to comment.