mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
chore: bump to newer nightly (#1426)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user