mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-28 05:10:36 +02:00
clippy warnings
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
# Changes
|
||||
|
||||
## [0.3.0-alpha.2] - 2019-11-xx
|
||||
## [1.0.0-alpha.2] - 2019-12-02
|
||||
|
||||
* Re-export `test` attribute macros
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "actix-testing"
|
||||
version = "0.3.0-alpha.2"
|
||||
version = "1.0.0-alpha.2"
|
||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||
description = "Actix testing utils"
|
||||
keywords = ["network", "framework", "async", "futures"]
|
||||
@ -17,11 +17,10 @@ name = "actix_testing"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
actix-rt = "1.0.0-alpha.1"
|
||||
actix-rt = "1.0.0-alpha.2"
|
||||
actix-macros = "0.1.0-alpha.1"
|
||||
actix-server = "0.8.0-alpha.1"
|
||||
actix-server-config = "0.3.0-alpha.1"
|
||||
actix-service = "1.0.0-alpha.1"
|
||||
actix-server = "1.0.0-alpha.2"
|
||||
actix-service = "1.0.0-alpha.2"
|
||||
|
||||
log = "0.4"
|
||||
net2 = "0.2"
|
||||
|
@ -1,10 +1,12 @@
|
||||
//! Various helpers for Actix applications to use during testing.
|
||||
#![deny(rust_2018_idioms, warnings)]
|
||||
#![allow(clippy::type_complexity)]
|
||||
|
||||
use std::sync::mpsc;
|
||||
use std::{net, thread};
|
||||
|
||||
use actix_rt::{net::TcpStream, System};
|
||||
use actix_server::{Server, ServerBuilder, ServiceFactory};
|
||||
pub use actix_server_config::{Io, ServerConfig};
|
||||
|
||||
use net2::TcpBuilder;
|
||||
use tokio_net::driver::Handle;
|
||||
@ -46,7 +48,7 @@ pub struct TestServerRuntime {
|
||||
|
||||
impl TestServer {
|
||||
/// Start new server with server builder
|
||||
pub fn new<F>(mut factory: F) -> TestServerRuntime
|
||||
pub fn start<F>(mut factory: F) -> TestServerRuntime
|
||||
where
|
||||
F: FnMut(ServerBuilder) -> ServerBuilder + Send + 'static,
|
||||
{
|
||||
|
Reference in New Issue
Block a user