Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/service_struct_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ impl Service<Request<IncomingBody>> for Svc {
"authors extraordinare! counter = {:?}",
self.counter
)),
// Return the 404 Not Found for other routes, and don't increment counter.
_ => return Box::pin(async { mk_response("oh no! not found".into()) }),
_ => mk_response("oh no! not found".into()),
};

Box::pin(async { res })
Expand Down