about summary refs log tree commit diff
path: root/src/libcore/time.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/time.rs')
-rw-r--r--src/libcore/time.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/time.rs b/src/libcore/time.rs
index 9bb187e7de9..0f5f91f41a8 100644
--- a/src/libcore/time.rs
+++ b/src/libcore/time.rs
@@ -847,7 +847,7 @@ impl<'a> Sum<&'a Duration> for Duration {
 
 #[stable(feature = "duration_debug_impl", since = "1.27.0")]
 impl fmt::Debug for Duration {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         /// Formats a floating point number in decimal notation.
         ///
         /// The number is given as the `integer_part` and a fractional part.
@@ -859,7 +859,7 @@ impl fmt::Debug for Duration {
         /// of 10, everything else doesn't make sense. `fractional_part` has
         /// to be less than `10 * divisor`!
         fn fmt_decimal(
-            f: &mut fmt::Formatter,
+            f: &mut fmt::Formatter<'_>,
             mut integer_part: u64,
             mut fractional_part: u32,
             mut divisor: u32,