summaryrefslogtreecommitdiffstats
path: root/tokio-timer
diff options
context:
space:
mode:
authorAndy Russell <arussell123@gmail.com>2019-02-19 16:54:52 -0500
committerCarl Lerche <me@carllerche.com>2019-02-19 13:54:52 -0800
commit2d5aa823418c32d71cd430b9161d10c62d5d2433 (patch)
tree53b27407f28515e1b2c923a9beb5ec4bfa3cdafb /tokio-timer
parentdd66096ea0ab388c7163ae1928fc29d3f20e02ea (diff)
chore: move doc comments inside macro invocations (#901)
Diffstat (limited to 'tokio-timer')
-rw-r--r--tokio-timer/src/clock/clock.rs6
-rw-r--r--tokio-timer/src/timer/handle.rs6
2 files changed, 8 insertions, 4 deletions
diff --git a/tokio-timer/src/clock/clock.rs b/tokio-timer/src/clock/clock.rs
index 00179d3d..1e3b5bfe 100644
--- a/tokio-timer/src/clock/clock.rs
+++ b/tokio-timer/src/clock/clock.rs
@@ -20,8 +20,10 @@ pub struct Clock {
now: Option<Arc<Now>>,
}
-/// Thread-local tracking the current clock
-thread_local!(static CLOCK: Cell<Option<*const Clock>> = Cell::new(None));
+thread_local!{
+ /// Thread-local tracking the current clock
+ static CLOCK: Cell<Option<*const Clock>> = Cell::new(None)
+}
/// Returns an `Instant` corresponding to "now".
///
diff --git a/tokio-timer/src/timer/handle.rs b/tokio-timer/src/timer/handle.rs
index 323e39e1..64143729 100644
--- a/tokio-timer/src/timer/handle.rs
+++ b/tokio-timer/src/timer/handle.rs
@@ -44,8 +44,10 @@ pub(crate) struct HandlePriv {
inner: Weak<Inner>,
}
-/// Tracks the timer for the current execution context.
-thread_local!(static CURRENT_TIMER: RefCell<Option<HandlePriv>> = RefCell::new(None));
+thread_local!{
+ /// Tracks the timer for the current execution context.
+ static CURRENT_TIMER: RefCell<Option<HandlePriv>> = RefCell::new(None)
+}
/// Set the default timer for the duration of the closure.
///