Make the cast in Bidirectional stream smaller (#387)

Since we already define the type we can just use it instead of writing it again
This commit is contained in:
Tunahan Karlıbaş
2020-07-06 18:58:07 +03:00
committed by GitHub
parent 9c50d759de
commit 9c954e0908
+1 -3
View File
@@ -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))
}
```