mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 16:02:59 +01:00
clippy warnings
This commit is contained in:
parent
b56be8e571
commit
717602472a
@ -121,7 +121,7 @@ impl HttpRequest<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[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 {
|
pub(crate) fn from_message(msg: SharedHttpInnerMessage) -> HttpRequest {
|
||||||
HttpRequest(msg, None, None)
|
HttpRequest(msg, None, None)
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,10 @@ impl Frame {
|
|||||||
Frame::message(payload, OpCode::Close, true, genmask)
|
Frame::message(payload, OpCode::Close, true, genmask)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_copy_md<S>(
|
#[cfg_attr(feature="cargo-clippy", allow(type_complexity))]
|
||||||
pl: &mut PayloadHelper<S>, server: bool, max_size: usize
|
fn read_copy_md<S>(pl: &mut PayloadHelper<S>,
|
||||||
|
server: bool,
|
||||||
|
max_size: usize
|
||||||
) -> Poll<Option<(usize, bool, OpCode, usize, Option<u32>)>, ProtocolError>
|
) -> Poll<Option<(usize, bool, OpCode, usize, Option<u32>)>, ProtocolError>
|
||||||
where S: Stream<Item=Bytes, Error=PayloadError>
|
where S: Stream<Item=Bytes, Error=PayloadError>
|
||||||
{
|
{
|
||||||
|
@ -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.
|
/// Faster version of `apply_mask()` which operates on 8-byte blocks.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
#[cfg_attr(feature="cargo-clippy", allow(cast_lossless))]
|
||||||
fn apply_mask_fast32(buf: &mut [u8], mask_u32: u32) {
|
fn apply_mask_fast32(buf: &mut [u8], mask_u32: u32) {
|
||||||
let mut ptr = buf.as_mut_ptr();
|
let mut ptr = buf.as_mut_ptr();
|
||||||
let mut len = buf.len();
|
let mut len = buf.len();
|
||||||
|
Loading…
Reference in New Issue
Block a user