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(
BytesMut::new(),
move |mut acc, bytes| {
let bytes = bytes.clone();
async move {
acc.extend_from_slice(&bytes);
acc
}
acc.extend_from_slice(bytes);
async move { acc }
},
))
.and_then(move |parts: Vec<DigestPart>, bytes_mut: BytesMut| {