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:
@@ -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))
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user