mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_http, aquatic_common_tcp: fix some clippy warnings
This commit is contained in:
parent
8269ae2994
commit
b65297195a
5 changed files with 8 additions and 11 deletions
|
|
@ -43,7 +43,7 @@ pub fn serialize_20_bytes<S>(
|
|||
|
||||
|
||||
pub fn serialize_response_peers_compact<S>(
|
||||
response_peers: &Vec<ResponsePeer>,
|
||||
response_peers: &[ResponsePeer],
|
||||
serializer: S
|
||||
) -> Result<S::Ok, S::Error> where S: Serializer {
|
||||
let mut bytes = Vec::with_capacity(response_peers.len() * 6);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue