mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-22 01:11:00 +00:00
Remove unneeded clone
This commit is contained in:
parent
8acbcaea62
commit
3cc6a71278
1 changed files with 2 additions and 5 deletions
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue