mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-30 18:34:36 +01:00
remove unneded &
This commit is contained in:
parent
2d43489278
commit
1bd0995d7a
@ -504,7 +504,7 @@ impl ClientRequest {
|
|||||||
Item = ClientResponse<impl Stream<Item = Bytes, Error = PayloadError>>,
|
Item = ClientResponse<impl Stream<Item = Bytes, Error = PayloadError>>,
|
||||||
Error = SendRequestError,
|
Error = SendRequestError,
|
||||||
> {
|
> {
|
||||||
let body = match serde_json::to_string(&value) {
|
let body = match serde_json::to_string(value) {
|
||||||
Ok(body) => body,
|
Ok(body) => body,
|
||||||
Err(e) => return Either::A(err(Error::from(e).into())),
|
Err(e) => return Either::A(err(Error::from(e).into())),
|
||||||
};
|
};
|
||||||
@ -520,12 +520,12 @@ impl ClientRequest {
|
|||||||
/// `ClientRequestBuilder` can not be used after this call.
|
/// `ClientRequestBuilder` can not be used after this call.
|
||||||
pub fn send_form<T: Serialize>(
|
pub fn send_form<T: Serialize>(
|
||||||
&mut self,
|
&mut self,
|
||||||
value: T,
|
value: &T,
|
||||||
) -> impl Future<
|
) -> impl Future<
|
||||||
Item = ClientResponse<impl Stream<Item = Bytes, Error = PayloadError>>,
|
Item = ClientResponse<impl Stream<Item = Bytes, Error = PayloadError>>,
|
||||||
Error = SendRequestError,
|
Error = SendRequestError,
|
||||||
> {
|
> {
|
||||||
let body = match serde_urlencoded::to_string(&value) {
|
let body = match serde_urlencoded::to_string(value) {
|
||||||
Ok(body) => body,
|
Ok(body) => body,
|
||||||
Err(e) => return Either::A(err(Error::from(e).into())),
|
Err(e) => return Either::A(err(Error::from(e).into())),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user