From d4578a835dd0ba7918de835ac258d76377725811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= Date: Fri, 31 Aug 2018 12:35:44 +0200 Subject: [PATCH] Use `Hyper::Body` as default for `Endpoint` This makes many code more compact. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f271f518..f03ec86b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,9 +28,10 @@ use std::io; use futures::future::FutureFrom; use http::{Method, Request, Response, StatusCode}; +use hyper::Body; /// A Matrix API endpoint. -pub trait Endpoint { +pub trait Endpoint { /// Data needed to make a request to the endpoint. type Request: TryInto, Error = Error>; /// Data returned from the endpoint.