fix clippy

This commit is contained in:
Maybe Waffle 2022-03-03 02:21:52 +03:00
parent cfb48a6fa4
commit 9eb51ad34b

View file

@ -34,7 +34,7 @@ where
// [#460]: https://github.com/teloxide/teloxide/issues/460
let method_name = method_name.trim_end_matches("Inline");
let mut request = client
let request = client
.post(crate::net::method_url(api_url, token, method_name))
.multipart(params)
.build()
@ -77,7 +77,7 @@ where
// [#460]: https://github.com/teloxide/teloxide/issues/460
let method_name = method_name.trim_end_matches("Inline");
let mut request = client
let request = client
.post(crate::net::method_url(api_url, token, method_name))
.header(CONTENT_TYPE, HeaderValue::from_static("application/json"))
.body(params)