1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

Fix code style (#65)

* Fix clippy warnings

* cargo fmt

* Remove redundant lifetime
This commit is contained in:
Yuki Okushi
2019-11-15 00:28:29 +09:00
committed by GitHub
parent 13049b80ca
commit be7904fd57
14 changed files with 24 additions and 25 deletions

View File

@ -445,7 +445,7 @@ impl Accept {
delay(Instant::now() + Duration::from_millis(510)).await;
let _ = r.set_readiness(mio::Ready::readable());
}
.boxed(),
.boxed(),
);
return;
}

View File

@ -326,7 +326,7 @@ impl ServerBuilder {
async move {
Worker::start(rx1, rx2, services, avail, timeout);
}
.boxed(),
.boxed(),
);
worker
@ -401,7 +401,7 @@ impl ServerBuilder {
.await;
System::current().stop();
}
.boxed(),
.boxed(),
);
}
ready(())

View File

@ -139,7 +139,7 @@ impl InternalServiceFactory for ConfiguredService {
}
return Ok(res);
}
.boxed_local()
.boxed_local()
}
}
@ -266,6 +266,6 @@ where
}
};
}
.boxed_local()
.boxed_local()
}
}

View File

@ -87,7 +87,7 @@ where
let _ = f.await;
drop(guard);
}
.boxed_local(),
.boxed_local(),
);
ok(())
} else {

View File

@ -92,7 +92,7 @@ impl<T: AsyncRead + AsyncWrite + Unpin + 'static, P> Service for OpensslAcceptor
let acc = acc;
tokio_openssl::accept(&acc, io).await
}
.boxed_local::<'static>(),
.boxed_local(),
params: Some(params),
}
}

View File

@ -187,7 +187,7 @@ impl Worker {
}
wrk.await
}
.boxed_local(),
.boxed_local(),
);
}