Skip to content

Commit

Permalink
Make the cast in Bidirectional stream smaller (#387)
Browse files Browse the repository at this point in the history
Since we already define the type we can just use it instead of writing it again
  • Loading branch information
Tunahan Karlıbaş authored Jul 6, 2020
1 parent 9c50d75 commit 9c954e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/routeguide-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,7 @@ async fn route_chat(
};

Ok(Response::new(Box::pin(output)
as Pin<
Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + Sync + 'static>,
>))
as Self::RouteChatStream))

}
```
Expand Down

0 comments on commit 9c954e0

Please sign in to comment.