From 7e0d898d5aff2439623af0ad08e8307a69cb48e7 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 12 Mar 2020 00:52:21 -0300 Subject: [PATCH] Fix clippy warnings Signed-off-by: Otavio Salvador --- awc/src/sender.rs | 1 - src/types/json.rs | 1 - src/types/query.rs | 1 - tests/test_weird_poll.rs | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/awc/src/sender.rs b/awc/src/sender.rs index ec18f12e..983e730e 100644 --- a/awc/src/sender.rs +++ b/awc/src/sender.rs @@ -9,7 +9,6 @@ use bytes::Bytes; use derive_more::From; use futures_core::{Future, Stream}; use serde::Serialize; -use serde_json; use actix_http::body::{Body, BodyStream}; use actix_http::http::header::{self, IntoHeaderValue}; diff --git a/src/types/json.rs b/src/types/json.rs index fb00bf7a..ead2d0c9 100644 --- a/src/types/json.rs +++ b/src/types/json.rs @@ -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; use actix_http::http::{header::CONTENT_LENGTH, StatusCode}; use actix_http::{HttpMessage, Payload, Response}; diff --git a/src/types/query.rs b/src/types/query.rs index a6c18d9b..73ea14f1 100644 --- a/src/types/query.rs +++ b/src/types/query.rs @@ -6,7 +6,6 @@ use std::{fmt, ops}; use actix_http::error::Error; use futures::future::{err, ok, Ready}; use serde::de; -use serde_urlencoded; use crate::dev::Payload; use crate::error::QueryPayloadError; diff --git a/tests/test_weird_poll.rs b/tests/test_weird_poll.rs index 571b69f4..7e430090 100644 --- a/tests/test_weird_poll.rs +++ b/tests/test_weird_poll.rs @@ -1,11 +1,11 @@ // Regression test for #/1321 +/* use futures::task::{noop_waker, Context}; use futures::stream::once; use actix_http::body::{MessageBody, BodyStream}; use bytes::Bytes; -/* Disable weird poll until actix-web is based on actix-http 2.0.0 #[test]