time: move error types into time::error (#2938)

This commit is contained in:
Juan Alvarez
2020-10-12 10:21:44 -07:00
committed by GitHub
parent ec99e61945
commit 0893841f31
10 changed files with 49 additions and 49 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
use crate::time::wheel::{self, Wheel};
use futures_core::ready;
use tokio::time::{sleep_until, Duration, Error, Instant, Sleep};
use tokio::time::{error::Error, sleep_until, Duration, Instant, Sleep};
use slab::Slab;
use std::cmp;
@@ -67,7 +67,7 @@ use std::task::{self, Poll};
/// Using `DelayQueue` to manage cache entries.
///
/// ```rust,no_run
/// use tokio::time::Error;
/// use tokio::time::error::Error;
/// use tokio_util::time::{DelayQueue, delay_queue};
///
/// use futures::ready;