Skip to content

Commit

Permalink
Remove unneeded borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Denis committed Aug 9, 2022
1 parent cdb41a6 commit d911c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ pub fn serve_certificates<'t>(
if !qname.eq_ignore_ascii_case(expected_qname) {
return Ok(None);
}
let mut packet = (&client_packet[..offset + 4]).to_vec();
let mut packet = client_packet[..offset + 4].to_vec();
an_ns_ar_count_clear(&mut packet);
authoritative_response(&mut packet);
let dnscrypt_encryption_params = dnscrypt_encryption_params_set
Expand Down

0 comments on commit d911c34

Please sign in to comment.