clippy pedantic

This commit is contained in:
Toshit Chawda 2024-11-25 13:29:29 -08:00
parent 272610f904
commit 7efda6c533
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
14 changed files with 148 additions and 129 deletions

View file

@ -52,7 +52,7 @@ async fn send_info_packet<W: WebSocketWrite>(
.await
}
fn validate_continue_packet(packet: Packet<'_>) -> Result<u32, WispError> {
fn validate_continue_packet(packet: &Packet<'_>) -> Result<u32, WispError> {
if packet.stream_id != 0 {
return Err(WispError::InvalidStreamId);
}