From 89a39d85b21194847fe5e74e0df25f484466f309 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 7 Nov 2024 23:53:01 +0100 Subject: [PATCH] use delegate explicitely --- src/time/cds.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/time/cds.rs b/src/time/cds.rs index 9c40a46..9b7eb94 100644 --- a/src/time/cds.rs +++ b/src/time/cds.rs @@ -11,8 +11,6 @@ use core::fmt::{Debug, Display, Formatter}; use core::ops::{Add, AddAssign}; use core::time::Duration; -use delegate::delegate; - #[cfg(feature = "std")] use super::StdTimestampError; #[cfg(feature = "std")] @@ -316,7 +314,7 @@ impl CdsCommon for ConversionFromChronoDatetime { self.submillis_prec } - delegate! { + delegate::delegate! { to self.unix_conversion { #[inline] fn ms_of_day(&self) -> u32; @@ -333,7 +331,7 @@ impl CdsCommon for ConversionFromChronoDatetime { #[cfg(feature = "chrono")] impl CdsConverter for ConversionFromChronoDatetime { - delegate! {to self.unix_conversion { + delegate::delegate! {to self.unix_conversion { #[inline] fn unix_days_seconds(&self) -> i64; }} @@ -451,7 +449,7 @@ impl CdsCommon for ConversionFromNow { fn submillis_precision(&self) -> SubmillisPrecision { self.submillis_prec } - delegate! { + delegate::delegate! { to self.unix_conversion { fn ms_of_day(&self) -> u32; fn ccsds_days_as_u32(&self) -> u32; @@ -465,7 +463,7 @@ impl CdsCommon for ConversionFromNow { #[cfg(feature = "std")] impl CdsConverter for ConversionFromNow { - delegate! {to self.unix_conversion { fn unix_days_seconds(&self) -> i64; }} + delegate::delegate! {to self.unix_conversion { fn unix_days_seconds(&self) -> i64; }} } #[cfg(feature = "alloc")]