summaryrefslogtreecommitdiff
path: root/echo/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'echo/src/main.rs')
-rw-r--r--echo/src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/echo/src/main.rs b/echo/src/main.rs
index fed0059..424a538 100644
--- a/echo/src/main.rs
+++ b/echo/src/main.rs
@@ -37,7 +37,11 @@ impl Handler for EchoHandler {
EchoHandler { output }
}
- fn handle(&self, header: MessageHeader, body: Self::Body) -> impl Future<Output = ()> + Send {
+ fn handle(
+ &self,
+ header: MessageHeader,
+ body: Self::Body,
+ ) -> impl Future<Output = ()> + Send + '_ {
async move {
match body {
EchoBody::Echo { msg_id, echo } => {