chore: bump to newer nightly (#1426)

This commit is contained in:
Taiki Endo
2019-08-11 02:01:20 +09:00
committed by GitHub
parent fff39c03b1
commit d9f9c5658f
44 changed files with 45 additions and 89 deletions
+5 -5
View File
@@ -429,7 +429,7 @@ impl<P: Park + Default> Default for CurrentThread<P> {
// ===== impl Entered =====
impl<'a, P: Park> Entered<'a, P> {
impl<P: Park> Entered<'_, P> {
/// Spawn the future on the executor.
///
/// This internally queues the future to be executed once `run` is called.
@@ -593,7 +593,7 @@ impl<'a, P: Park> Entered<'a, P> {
}
}
impl<'a, P: Park> fmt::Debug for Entered<'a, P> {
impl<P: Park> fmt::Debug for Entered<'_, P> {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt.debug_struct("Entered")
.field("executor", &self.executor)
@@ -738,7 +738,7 @@ where
// ===== impl Borrow =====
impl<'a, U: Unpark> Borrow<'a, U> {
impl<U: Unpark> Borrow<'_, U> {
fn enter<F, R>(&mut self, f: F) -> R
where
F: FnOnce() -> R,
@@ -750,7 +750,7 @@ impl<'a, U: Unpark> Borrow<'a, U> {
}
}
impl<'a, U: Unpark> SpawnLocal for Borrow<'a, U> {
impl<U: Unpark> SpawnLocal for Borrow<'_, U> {
fn spawn_local(&mut self, future: Pin<Box<dyn Future<Output = ()>>>, already_counted: bool) {
if !already_counted {
// NOTE: we have a borrow of the Runtime, so we know that it isn't shut down.
@@ -770,7 +770,7 @@ impl CurrentRunner {
{
struct Reset<'a>(&'a CurrentRunner);
impl<'a> Drop for Reset<'a> {
impl Drop for Reset<'_> {
fn drop(&mut self) {
self.0.spawn.set(None);
self.0.id.set(None);