1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 00:14:58 +02:00

address clippy warnings

This commit is contained in:
Rob Ede
2021-03-08 20:32:19 +00:00
parent 5e81105317
commit 95130fcfd0
6 changed files with 8 additions and 5 deletions

View File

@ -72,7 +72,7 @@ async fn test_start() {
}
#[cfg(feature = "openssl")]
fn ssl_acceptor() -> std::io::Result<SslAcceptorBuilder> {
fn ssl_acceptor() -> SslAcceptorBuilder {
use openssl::{
pkey::PKey,
ssl::{SslAcceptor, SslMethod},
@ -102,7 +102,7 @@ async fn test_start_ssl() {
thread::spawn(move || {
let sys = actix_rt::System::new();
let builder = ssl_acceptor().unwrap();
let builder = ssl_acceptor();
let srv = HttpServer::new(|| {
App::new().service(web::resource("/").route(web::to(|req: HttpRequest| {