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:
@ -120,7 +120,7 @@ impl Arbiter {
|
||||
// register arbiter
|
||||
let _ = System::current()
|
||||
.sys()
|
||||
.unbounded_send(SystemCommand::RegisterArbiter(id, arb.clone()));
|
||||
.unbounded_send(SystemCommand::RegisterArbiter(id, arb));
|
||||
|
||||
// run loop
|
||||
let _ = match rt.block_on(stop_rx) {
|
||||
|
@ -229,12 +229,12 @@ impl SystemRunner {
|
||||
where
|
||||
F: Future<Output = O>,
|
||||
{
|
||||
let _ = self.rt.block_on(async {
|
||||
self.rt.block_on(async {
|
||||
Arbiter::run_system();
|
||||
});
|
||||
|
||||
let res = self.rt.block_on(fut);
|
||||
let _ = self.rt.block_on(async {
|
||||
self.rt.block_on(async {
|
||||
Arbiter::stop_system();
|
||||
});
|
||||
|
||||
|
@ -125,8 +125,7 @@ impl Runtime {
|
||||
{
|
||||
self.enter(|executor| {
|
||||
// Run the provided future
|
||||
let ret = executor.block_on(f);
|
||||
ret
|
||||
executor.block_on(f)
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user