diff --git a/src/request.rs b/src/request.rs index dd6b774..233ba85 100644 --- a/src/request.rs +++ b/src/request.rs @@ -166,9 +166,7 @@ impl Request { /// .set("Content-Type", "text/plain") /// .send(read); /// ``` - pub fn send(&mut self, reader: R) -> Response - where - R: Read + Send + 'static, + pub fn send(&mut self, reader: impl Read + 'static) -> Response { self.do_call(Payload::Reader(Box::new(reader))) }