Skip to content

Commit 7fc2577

Browse files
committed
cargo fmt --all
1 parent 81f0248 commit 7fc2577

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/route_middleware.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ async fn echo_path<State>(req: tide::Request<State>) -> String {
2828
fn route_middleware() {
2929
let mut app = tide::new();
3030
let mut foo_route = app.at("/foo");
31-
foo_route.middleware(TestMiddleware("foo"))
32-
.get(echo_path);
33-
foo_route.at("/bar")
31+
foo_route.middleware(TestMiddleware("foo")).get(echo_path);
32+
foo_route
33+
.at("/bar")
3434
.middleware(TestMiddleware("bar"))
3535
.get(echo_path);
36-
foo_route.post(echo_path)
37-
.reset_middleware()
38-
.put(echo_path);
36+
foo_route.post(echo_path).reset_middleware().put(echo_path);
3937
let mut server = make_server(app.into_http_service()).unwrap();
4038

4139
let mut buf = Vec::new();

0 commit comments

Comments
 (0)