From 9c954e09082eb09909fb70575af8818bc70fc758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tunahan=20Karl=C4=B1ba=C5=9F?= Date: Mon, 6 Jul 2020 18:58:07 +0300 Subject: [PATCH] Make the cast in Bidirectional stream smaller (#387) Since we already define the type we can just use it instead of writing it again --- examples/routeguide-tutorial.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/routeguide-tutorial.md b/examples/routeguide-tutorial.md index 0c35506..d785df5 100644 --- a/examples/routeguide-tutorial.md +++ b/examples/routeguide-tutorial.md @@ -517,9 +517,7 @@ async fn route_chat( }; Ok(Response::new(Box::pin(output) - as Pin< - Box> + Send + Sync + 'static>, - >)) + as Self::RouteChatStream)) } ```