From: Ian Jackson Date: Sun, 17 May 2020 11:46:54 +0000 (+0100) Subject: use impl trait X-Git-Tag: otter-0.2.0~1614 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7b2b9fc302ceb59854821da78f47cc3e1c9ca739;p=otter.git use impl trait --- diff --git a/src/main.rs b/src/main.rs index c4435da5..e2685b0d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,7 +41,7 @@ impl<'r> FromParam<'r> for CheckedResourceLeaf { } #[get("/updates")] -fn updates() -> response::Content> { +fn updates() -> impl response::Responder<'static> { let ch = response::Stream::chunked( b"data: an update" .as_ref(), 1);