mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-25 02:41: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(
|
.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| {
|
||||||
|
|
Loading…
Reference in a new issue