aboutsummaryrefslogtreecommitdiff
path: root/src/time/driver/handle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/driver/handle.rs')
-rw-r--r--src/time/driver/handle.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/time/driver/handle.rs b/src/time/driver/handle.rs
index 9a05a54..7aaf65a 100644
--- a/src/time/driver/handle.rs
+++ b/src/time/driver/handle.rs
@@ -16,17 +16,17 @@ impl Handle {
Handle { time_source, inner }
}
- /// Returns the time source associated with this handle
+ /// Returns the time source associated with this handle.
pub(super) fn time_source(&self) -> &ClockTime {
&self.time_source
}
- /// Access the driver's inner structure
+ /// Access the driver's inner structure.
pub(super) fn get(&self) -> &super::Inner {
&*self.inner
}
- // Check whether the driver has been shutdown
+ /// Checks whether the driver has been shutdown.
pub(super) fn is_shutdown(&self) -> bool {
self.inner.is_shutdown()
}
@@ -76,7 +76,7 @@ cfg_not_rt! {
/// lazy, and so outside executed inside the runtime successfully without
/// panicking.
pub(crate) fn current() -> Self {
- panic!(crate::util::error::CONTEXT_MISSING_ERROR)
+ panic!("{}", crate::util::error::CONTEXT_MISSING_ERROR)
}
}
}