Skip to content

Commit

Permalink
impl feedback from review
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed May 17, 2020
1 parent c3ee6af commit 9a143b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ impl<State: Send + Sync + 'static> Server<State> {
{
let req = Request::new(self.state.clone(), req.into(), Vec::new());
match self.call(req).await {
Ok(value) => {
let res: http_types::Response = value.into();
Ok(res) => {
let res: http_types::Response = res.into();
// We assume that if an error was manually cast to a
// Response that we actually want to send the body to the
// client. At this point we don't scrub the message.
Expand Down

0 comments on commit 9a143b3

Please sign in to comment.