mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
chore: bump to newer nightly (#1426)
This commit is contained in:
@@ -136,7 +136,7 @@ impl tokio_executor::Executor for Sender {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> tokio_executor::Executor for &'a Sender {
|
||||
impl tokio_executor::Executor for &Sender {
|
||||
fn status(&self) -> Result<(), tokio_executor::SpawnError> {
|
||||
let state: pool::State = self.pool.state.load(Acquire).into();
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ impl Task {
|
||||
let res = panic::catch_unwind(panic::AssertUnwindSafe(|| {
|
||||
struct Guard<'a>(&'a mut Option<BoxFuture>, bool);
|
||||
|
||||
impl<'a> Drop for Guard<'a> {
|
||||
impl Drop for Guard<'_> {
|
||||
fn drop(&mut self) {
|
||||
// This drops the future
|
||||
if self.1 {
|
||||
|
||||
@@ -530,7 +530,7 @@ impl Worker {
|
||||
worker: &'a Worker,
|
||||
}
|
||||
|
||||
impl<'a> Drop for Guard<'a> {
|
||||
impl Drop for Guard<'_> {
|
||||
fn drop(&mut self) {
|
||||
// A task is allocated at run when it was explicitly notified
|
||||
// that the task has capacity to block. When this happens, that
|
||||
|
||||
@@ -350,7 +350,7 @@ fn busy_threadpool_is_not_idle() {
|
||||
|
||||
struct IdleFut<'a>(&'a mut Shutdown);
|
||||
|
||||
impl<'a> Future for IdleFut<'a> {
|
||||
impl Future for IdleFut<'_> {
|
||||
type Output = ();
|
||||
|
||||
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()> {
|
||||
|
||||
Reference in New Issue
Block a user