diff options
author | Ivan Petkov <ivanppetkov@gmail.com> | 2019-08-18 14:38:55 -0700 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-08-18 14:38:54 -0700 |
commit | 68d5fcb8d154309ba5abeaf8f092835ff3fa7c52 (patch) | |
tree | 53fcca866e2f5ff84a70aca963ca8fadc7f65ac2 /tokio-timer | |
parent | 08b07afbd9beb8d92c7aeb0cf07e56d065a73726 (diff) |
docs: fix all rustdoc warnings (#1474)
Diffstat (limited to 'tokio-timer')
-rw-r--r-- | tokio-timer/src/clock/mod.rs | 10 | ||||
-rw-r--r-- | tokio-timer/src/clock/now.rs | 2 | ||||
-rw-r--r-- | tokio-timer/src/lib.rs | 4 | ||||
-rw-r--r-- | tokio-timer/src/timer/handle.rs | 2 | ||||
-rw-r--r-- | tokio-timer/src/timer/mod.rs | 16 |
5 files changed, 17 insertions, 17 deletions
diff --git a/tokio-timer/src/clock/mod.rs b/tokio-timer/src/clock/mod.rs index cb15c379..a4cd2b3f 100644 --- a/tokio-timer/src/clock/mod.rs +++ b/tokio-timer/src/clock/mod.rs @@ -12,8 +12,8 @@ //! //! [n]: fn.now.html //! [`Now`]: trait.Now.html -//! [`Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html -//! [`Instant::now`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.now +//! [`Instant`]: std::time::Instant +//! [`Instant::now`]: std::time::Instant::now //! [`with_default`]: fn.with_default.html mod now; @@ -31,8 +31,8 @@ use std::time::Instant; /// `Clock` instances return [`Instant`] values corresponding to "now". The source /// of these values is configurable. The default source is [`Instant::now`]. /// -/// [`Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html -/// [`Instant::now`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.now +/// [`Instant`]: std::time::Instant +/// [`Instant::now`]: std::time::Instant::now #[derive(Default, Clone)] pub struct Clock { now: Option<Arc<dyn Now>>, @@ -87,7 +87,7 @@ impl Clock { /// Return a new `Clock` instance that uses [`Instant::now`] as the source /// of time. /// - /// [`Instant::now`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.now + /// [`Instant::now`]: std::time::Instant::now pub fn system() -> Clock { Clock { now: None } } diff --git a/tokio-timer/src/clock/now.rs b/tokio-timer/src/clock/now.rs index 18450c83..f6b11b70 100644 --- a/tokio-timer/src/clock/now.rs +++ b/tokio-timer/src/clock/now.rs @@ -8,7 +8,7 @@ use std::time::Instant; /// Implementations must ensure that calls to `now` return monotonically /// increasing [`Instant`] values. /// -/// [`Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html +/// [`Instant`]: std::time::Instant pub trait Now: Send + Sync + 'static { /// Returns an instant corresponding to "now". fn now(&self) -> Instant; diff --git a/tokio-timer/src/lib.rs b/tokio-timer/src/lib.rs index da046b07..9868fcb6 100644 --- a/tokio-timer/src/lib.rs +++ b/tokio-timer/src/lib.rs @@ -31,10 +31,10 @@ //! //! [`Delay`]: struct.Delay.html //! [`DelayQueue`]: struct.DelayQueue.html -//! [`Throttle`]: throttle/struct.Throttle.html +//! [`Throttle`]: throttle::Throttle //! [`Timeout`]: struct.Timeout.html //! [`Interval`]: struct.Interval.html -//! [`Timer`]: timer/struct.Timer.html +//! [`Timer`]: timer::Timer pub mod clock; pub mod delay_queue; diff --git a/tokio-timer/src/timer/handle.rs b/tokio-timer/src/timer/handle.rs index 596d6331..a6ddfd34 100644 --- a/tokio-timer/src/timer/handle.rs +++ b/tokio-timer/src/timer/handle.rs @@ -108,7 +108,7 @@ impl Handle { /// /// See [type] level documentation for more ways to obtain a `Handle` value. /// - /// [`with_default`]: ../fn.with_default.html + /// [`with_default`]: fn.with_default /// [type]: # pub fn current() -> Handle { let private = diff --git a/tokio-timer/src/timer/mod.rs b/tokio-timer/src/timer/mod.rs index 8c7f540b..1a25ef0a 100644 --- a/tokio-timer/src/timer/mod.rs +++ b/tokio-timer/src/timer/mod.rs @@ -23,12 +23,12 @@ //! //! [`Timer`]: struct.Timer.html //! [`Handle`]: struct.Handle.html -//! [`Delay`]: ../struct.Delay.html -//! [`Now`]: ../clock/trait.Now.html -//! [`Now::now`]: ../clock/trait.Now.html#method.now +//! [`Delay`]: Delay +//! [`Now`]: clock::Now +//! [`Now::now`]: clock::Now::now //! [`SystemNow`]: struct.SystemNow.html -//! [`Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html -//! [`Instant::now`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.now +//! [`Instant`]: std::time::Instant +//! [`Instant::now`]: std::time::Instant::now // This allows the usage of the old `Now` trait. #![allow(deprecated)] @@ -115,9 +115,9 @@ use tokio_executor::park::{Park, ParkThread, Unpark}; /// either be canceled (dropped) or their associated entries will reach level /// zero and be notified. /// -/// [`Delay`]: ../struct.Delay.html -/// [`Interval`]: ../struct.Interval.html -/// [`Timeout`]: ../struct.Timeout.html +/// [`Delay`]: struct.Delay.html +/// [`Interval`]: struct.Interval.html +/// [`Timeout`]: struct.Timeout.html /// [paper]: http://www.cs.columbia.edu/~nahum/w6998/papers/ton97-timing-wheels.pdf /// [`handle`]: #method.handle /// [`turn`]: #method.turn |