mirror of https://github.com/fafhrd91/actix-net
cargo fmt
This commit is contained in:
parent
ad1e583785
commit
2af0dfd7f8
|
@ -445,7 +445,7 @@ impl Accept {
|
||||||
delay(Instant::now() + Duration::from_millis(510)).await;
|
delay(Instant::now() + Duration::from_millis(510)).await;
|
||||||
let _ = r.set_readiness(mio::Ready::readable());
|
let _ = r.set_readiness(mio::Ready::readable());
|
||||||
}
|
}
|
||||||
.boxed(),
|
.boxed(),
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,7 +326,7 @@ impl ServerBuilder {
|
||||||
async move {
|
async move {
|
||||||
Worker::start(rx1, rx2, services, avail, timeout);
|
Worker::start(rx1, rx2, services, avail, timeout);
|
||||||
}
|
}
|
||||||
.boxed(),
|
.boxed(),
|
||||||
);
|
);
|
||||||
|
|
||||||
worker
|
worker
|
||||||
|
@ -401,7 +401,7 @@ impl ServerBuilder {
|
||||||
.await;
|
.await;
|
||||||
System::current().stop();
|
System::current().stop();
|
||||||
}
|
}
|
||||||
.boxed(),
|
.boxed(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
ready(())
|
ready(())
|
||||||
|
|
|
@ -139,7 +139,7 @@ impl InternalServiceFactory for ConfiguredService {
|
||||||
}
|
}
|
||||||
return Ok(res);
|
return Ok(res);
|
||||||
}
|
}
|
||||||
.boxed_local()
|
.boxed_local()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,6 +266,6 @@ where
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
.boxed_local()
|
.boxed_local()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ where
|
||||||
let _ = f.await;
|
let _ = f.await;
|
||||||
drop(guard);
|
drop(guard);
|
||||||
}
|
}
|
||||||
.boxed_local(),
|
.boxed_local(),
|
||||||
);
|
);
|
||||||
ok(())
|
ok(())
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -92,7 +92,7 @@ impl<T: AsyncRead + AsyncWrite + Unpin + 'static, P> Service for OpensslAcceptor
|
||||||
let acc = acc;
|
let acc = acc;
|
||||||
tokio_openssl::accept(&acc, io).await
|
tokio_openssl::accept(&acc, io).await
|
||||||
}
|
}
|
||||||
.boxed_local::<'static>(),
|
.boxed_local::<'static>(),
|
||||||
params: Some(params),
|
params: Some(params),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,7 +187,7 @@ impl Worker {
|
||||||
}
|
}
|
||||||
wrk.await
|
wrk.await
|
||||||
}
|
}
|
||||||
.boxed_local(),
|
.boxed_local(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -166,7 +166,7 @@ impl<T> Receiver<T> {
|
||||||
|
|
||||||
self.state = State::Closed(value);
|
self.state = State::Closed(value);
|
||||||
}
|
}
|
||||||
State::Closed(_) => {},
|
State::Closed(_) => {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue