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 - name: Clear the cargo caches
run: | run: |
cargo install cargo-cache --no-default-features cargo install cargo-cache --no-default-features --features ci-autoclean
cargo-cache cargo-cache

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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