Skip to content

Commit 720e9ee

Browse files
committed
cargo fmt
1 parent aa5af79 commit 720e9ee

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/router.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ impl<State: 'static> Router<State> {
3737
}
3838

3939
pub(crate) fn add_all(&mut self, path: &str, ep: impl Endpoint<State>) {
40-
self.all_method_router
41-
.add(path, Box::new(ep))
40+
self.all_method_router.add(path, Box::new(ep))
4241
}
4342

4443
pub(crate) fn route(&self, path: &str, method: http::Method) -> Selection<'_, State> {

src/server/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ impl<State: Sync + Send + 'static> HttpService for Service<State> {
361361
fn respond(&self, _conn: &mut (), req: http_service::Request) -> Self::ResponseFuture {
362362
let req = Request::new(self.state.clone(), req, Vec::new());
363363
let service = self.clone();
364-
Box::pin(async move {
365-
Ok(service.call(req).await.into())
366-
})
364+
Box::pin(async move { Ok(service.call(req).await.into()) })
367365
}
368366
}
369367

0 commit comments

Comments
 (0)