cargo clippy

This commit is contained in:
Nikolay Kim 2020-04-05 14:02:39 +06:00
parent f62a21f7e7
commit 65458b6e4b
11 changed files with 1 additions and 12 deletions

View file

@ -89,5 +89,5 @@ jobs:
- name: Clear the cargo caches
run: |
cargo install cargo-cache --no-default-features
cargo install cargo-cache --no-default-features --features ci-autoclean
cargo-cache

View file

@ -9,7 +9,6 @@ use bytes::Bytes;
use derive_more::From;
use futures::{Future, Stream};
use serde::Serialize;
use serde_json;
use crate::http::body::{Body, BodyStream};
use crate::http::error::HttpError;

View file

@ -7,7 +7,6 @@ use std::{fmt, io};
use derive_more::{Display, From};
use http::uri::InvalidUri;
use http::{header, StatusCode};
use httparse;
// re-export for convinience
pub use actix_threadpool::BlockingError;

View file

@ -7,7 +7,6 @@ use std::task::Poll;
use bytes::{Buf, Bytes, BytesMut};
use http::header::{HeaderName, HeaderValue};
use http::{header, Method, StatusCode, Uri, Version};
use httparse;
use log::{debug, error, trace};
use crate::codec::Decoder;

View file

@ -7,7 +7,6 @@ use std::{fmt, str};
use bytes::{Bytes, BytesMut};
use futures::Stream;
use serde::Serialize;
use serde_json;
#[cfg(feature = "cookie")]
use coo_kie::{Cookie, CookieJar};

View file

@ -10,7 +10,6 @@ use futures::stream::FuturesUnordered;
use futures::{ready, Future, FutureExt, Stream, StreamExt};
use log::{error, info};
use net2::TcpBuilder;
use num_cpus;
use crate::rt::net::TcpStream;
use crate::rt::time::{delay_until, Instant};

View file

@ -12,7 +12,6 @@ use futures::stream::{Stream, StreamExt};
use net2::TcpBuilder;
use serde::de::DeserializeOwned;
use serde::Serialize;
use serde_json;
#[cfg(feature = "cookie")]
use coo_kie::Cookie;

View file

@ -11,7 +11,6 @@ use futures::future::{err, ok, FutureExt, LocalBoxFuture, Ready};
use futures::StreamExt;
use serde::de::DeserializeOwned;
use serde::Serialize;
use serde_json;
#[cfg(feature = "compress")]
use crate::http::encoding::Decoder;

View file

@ -4,7 +4,6 @@ use std::{fmt, ops};
use futures::future::{err, ok, Ready};
use serde::de;
use serde_urlencoded;
use crate::http::Payload;
use crate::web::error::{ErrorRenderer, QueryPayloadError};

View file

@ -2,7 +2,6 @@ use std::convert::TryFrom;
use bytes::{Buf, BufMut, BytesMut};
use log::debug;
use rand;
use super::mask::apply_mask;
use super::proto::{CloseCode, CloseReason, OpCode};

View file

@ -1,5 +1,3 @@
use base64;
use sha1;
use std::convert::{From, Into};
use std::fmt;