fix clippy lints

This commit is contained in:
Martin Algesten
2020-01-07 07:55:03 +01:00
committed by Martin Algesten
parent a6f64188dc
commit 4b9cfe2b67
3 changed files with 12 additions and 21 deletions

View File

@@ -140,15 +140,10 @@ impl Request {
/// The `Content-Length` header is implicitly set to the length of the serialized value.
///
/// ```
/// #[macro_use]
/// extern crate ureq;
///
/// fn main() {
/// let body = b"Hello world!";
/// let r = ureq::post("/my_page")
/// .send_bytes(body);
/// println!("{:?}", r);
/// }
/// ```
pub fn send_bytes(&mut self, data: &[u8]) -> Response {
self.do_call(Payload::Bytes(data.to_owned()))