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_web::{
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
use std::sync::mpsc;
|
||||
use std::{thread, time::Duration};
|
||||
|
||||
#[cfg(feature = "openssl")]
|
||||
extern crate tls_openssl as openssl;
|
||||
#[cfg(feature = "rustls")]
|
||||
extern crate tls_rustls as rustls;
|
||||
|
||||
#[cfg(not(windows))]
|
||||
#[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)]
|
||||
#[actix_rt::test]
|
||||
|
@ -72,7 +69,7 @@ async fn test_start() {
|
|||
}
|
||||
|
||||
#[cfg(feature = "openssl")]
|
||||
fn ssl_acceptor() -> SslAcceptorBuilder {
|
||||
fn ssl_acceptor() -> openssl::ssl::SslAcceptorBuilder {
|
||||
use openssl::{
|
||||
pkey::PKey,
|
||||
ssl::{SslAcceptor, SslMethod},
|
||||
|
|
Loading…
Reference in New Issue