diff --git a/src/httprequest.rs b/src/httprequest.rs index 692fc32c..41d0cf9f 100644 --- a/src/httprequest.rs +++ b/src/httprequest.rs @@ -121,7 +121,7 @@ impl HttpRequest<()> { } #[inline(always)] - #[cfg_attr(feature = "cargo-clippy", allow(inline_always))] + #[cfg_attr(feature="cargo-clippy", allow(inline_always))] pub(crate) fn from_message(msg: SharedHttpInnerMessage) -> HttpRequest { HttpRequest(msg, None, None) } diff --git a/src/ws/frame.rs b/src/ws/frame.rs index c1743797..6075d904 100644 --- a/src/ws/frame.rs +++ b/src/ws/frame.rs @@ -48,8 +48,10 @@ impl Frame { Frame::message(payload, OpCode::Close, true, genmask) } - fn read_copy_md( - pl: &mut PayloadHelper, server: bool, max_size: usize + #[cfg_attr(feature="cargo-clippy", allow(type_complexity))] + fn read_copy_md(pl: &mut PayloadHelper, + server: bool, + max_size: usize ) -> Poll)>, ProtocolError> where S: Stream { diff --git a/src/ws/mask.rs b/src/ws/mask.rs index e29eefd9..e720a210 100644 --- a/src/ws/mask.rs +++ b/src/ws/mask.rs @@ -20,6 +20,7 @@ fn apply_mask_fallback(buf: &mut [u8], mask: &[u8; 4]) { /// Faster version of `apply_mask()` which operates on 8-byte blocks. #[inline] +#[cfg_attr(feature="cargo-clippy", allow(cast_lossless))] fn apply_mask_fast32(buf: &mut [u8], mask_u32: u32) { let mut ptr = buf.as_mut_ptr(); let mut len = buf.len();