mirror of https://github.com/fafhrd91/actix-web
more fix on clippy/check
This commit is contained in:
parent
10357976b3
commit
5cdaf20432
|
@ -1,4 +1,4 @@
|
||||||
use std::{fmt, io, path::PathBuf, rc::Rc, task::Poll};
|
use std::{fmt, io, path::PathBuf, rc::Rc};
|
||||||
|
|
||||||
use actix_service::Service;
|
use actix_service::Service;
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
use std::sync::mpsc;
|
|
||||||
use std::{thread, time::Duration};
|
|
||||||
|
|
||||||
#[cfg(feature = "openssl")]
|
#[cfg(feature = "openssl")]
|
||||||
extern crate tls_openssl as openssl;
|
extern crate tls_openssl as openssl;
|
||||||
#[cfg(feature = "rustls")]
|
|
||||||
extern crate tls_rustls as rustls;
|
|
||||||
|
|
||||||
|
#[cfg(not(windows))]
|
||||||
#[cfg(feature = "openssl")]
|
#[cfg(feature = "openssl")]
|
||||||
use openssl::ssl::SslAcceptorBuilder;
|
use {
|
||||||
|
actix_web::{test, web, App, HttpResponse, HttpServer},
|
||||||
use actix_web::{test, web, App, HttpResponse, HttpServer};
|
std::{sync::mpsc, thread, time::Duration},
|
||||||
|
};
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
|
@ -72,7 +69,7 @@ async fn test_start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "openssl")]
|
#[cfg(feature = "openssl")]
|
||||||
fn ssl_acceptor() -> SslAcceptorBuilder {
|
fn ssl_acceptor() -> openssl::ssl::SslAcceptorBuilder {
|
||||||
use openssl::{
|
use openssl::{
|
||||||
pkey::PKey,
|
pkey::PKey,
|
||||||
ssl::{SslAcceptor, SslMethod},
|
ssl::{SslAcceptor, SslMethod},
|
||||||
|
|
Loading…
Reference in New Issue