Skip to content

Commit

Permalink
use delegate explicitely
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Nov 7, 2024
1 parent 751cd00 commit 89a39d8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/time/cds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}}
Expand Down Expand Up @@ -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;
Expand All @@ -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")]
Expand Down

0 comments on commit 89a39d8

Please sign in to comment.