diff options
author | Taiki Endo <te316e89@gmail.com> | 2019-08-11 02:01:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-11 02:01:20 +0900 |
commit | d9f9c5658f135d2c5aca19ef435266170187c924 (patch) | |
tree | 5454c8087d7dffc244b97fec328a5774879921be /tokio-timer | |
parent | fff39c03b19871aafad25df5b8688d3915f001a0 (diff) |
chore: bump to newer nightly (#1426)
Diffstat (limited to 'tokio-timer')
-rw-r--r-- | tokio-timer/src/clock/mod.rs | 2 | ||||
-rw-r--r-- | tokio-timer/src/interval.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tokio-timer/src/clock/mod.rs b/tokio-timer/src/clock/mod.rs index bcae9dda..cb15c379 100644 --- a/tokio-timer/src/clock/mod.rs +++ b/tokio-timer/src/clock/mod.rs @@ -142,7 +142,7 @@ where // when leaving the scope. This handles cases that involve panicking. struct Reset<'a>(&'a Cell<Option<*const Clock>>); - impl<'a> Drop for Reset<'a> { + impl Drop for Reset<'_> { fn drop(&mut self) { self.0.set(None); } diff --git a/tokio-timer/src/interval.rs b/tokio-timer/src/interval.rs index 3b480f44..31e003f2 100644 --- a/tokio-timer/src/interval.rs +++ b/tokio-timer/src/interval.rs @@ -94,7 +94,6 @@ impl Interval { /// // approximately 30ms have elapsed. /// } /// ``` - #[allow(clippy::needless_lifetimes)] // false positive: https://github.com/rust-lang/rust-clippy/issues/3988 #[allow(clippy::should_implement_trait)] // TODO: rename (tokio-rs/tokio#1261) pub async fn next(&mut self) -> Option<Instant> { poll_fn(|cx| self.poll_next(cx)).await |