Remove unneeded clone

This commit is contained in:
Aode 2020-02-17 16:57:07 -06:00
parent 8acbcaea62
commit 3cc6a71278

View file

@ -43,11 +43,8 @@ pub fn verify(
.and(warp::body::inspect_request_body( .and(warp::body::inspect_request_body(
BytesMut::new(), BytesMut::new(),
move |mut acc, bytes| { move |mut acc, bytes| {
let bytes = bytes.clone(); acc.extend_from_slice(bytes);
async move { async move { acc }
acc.extend_from_slice(&bytes);
acc
}
}, },
)) ))
.and_then(move |parts: Vec<DigestPart>, bytes_mut: BytesMut| { .and_then(move |parts: Vec<DigestPart>, bytes_mut: BytesMut| {