1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

Use old clippy attributes syntax (#562)

This commit is contained in:
Stanislav Tkach
2018-11-01 10:14:48 +02:00
committed by Douman
parent cfd9a56ff7
commit 3b536ee96c
11 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
#![cfg_attr(
feature = "cargo-clippy",
allow(clippy::redundant_field_names)
allow(redundant_field_names)
)]
use std::{cmp, io};

View File

@ -326,7 +326,7 @@ where
#[doc(hidden)]
#[cfg_attr(
feature = "cargo-clippy",
allow(clippy::needless_pass_by_value)
allow(needless_pass_by_value)
)]
pub fn bind_with<S, A>(mut self, addr: S, acceptor: A) -> io::Result<Self>
where

View File

@ -438,7 +438,7 @@ impl ContentEncoder {
}
}
#[cfg_attr(feature = "cargo-clippy", allow(clippy::inline_always))]
#[cfg_attr(feature = "cargo-clippy", allow(inline_always))]
#[inline(always)]
pub fn write_eof(&mut self) -> Result<bool, io::Error> {
let encoder =
@ -480,7 +480,7 @@ impl ContentEncoder {
}
}
#[cfg_attr(feature = "cargo-clippy", allow(clippy::inline_always))]
#[cfg_attr(feature = "cargo-clippy", allow(inline_always))]
#[inline(always)]
pub fn write(&mut self, data: &[u8]) -> Result<(), io::Error> {
match *self {