use delegate explicitely
This commit is contained in:
parent
751cd00f0b
commit
89a39d85b2
@ -11,8 +11,6 @@ use core::fmt::{Debug, Display, Formatter};
|
|||||||
use core::ops::{Add, AddAssign};
|
use core::ops::{Add, AddAssign};
|
||||||
use core::time::Duration;
|
use core::time::Duration;
|
||||||
|
|
||||||
use delegate::delegate;
|
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use super::StdTimestampError;
|
use super::StdTimestampError;
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
@ -316,7 +314,7 @@ impl CdsCommon for ConversionFromChronoDatetime {
|
|||||||
self.submillis_prec
|
self.submillis_prec
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate! {
|
delegate::delegate! {
|
||||||
to self.unix_conversion {
|
to self.unix_conversion {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn ms_of_day(&self) -> u32;
|
fn ms_of_day(&self) -> u32;
|
||||||
@ -333,7 +331,7 @@ impl CdsCommon for ConversionFromChronoDatetime {
|
|||||||
|
|
||||||
#[cfg(feature = "chrono")]
|
#[cfg(feature = "chrono")]
|
||||||
impl CdsConverter for ConversionFromChronoDatetime {
|
impl CdsConverter for ConversionFromChronoDatetime {
|
||||||
delegate! {to self.unix_conversion {
|
delegate::delegate! {to self.unix_conversion {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn unix_days_seconds(&self) -> i64;
|
fn unix_days_seconds(&self) -> i64;
|
||||||
}}
|
}}
|
||||||
@ -451,7 +449,7 @@ impl CdsCommon for ConversionFromNow {
|
|||||||
fn submillis_precision(&self) -> SubmillisPrecision {
|
fn submillis_precision(&self) -> SubmillisPrecision {
|
||||||
self.submillis_prec
|
self.submillis_prec
|
||||||
}
|
}
|
||||||
delegate! {
|
delegate::delegate! {
|
||||||
to self.unix_conversion {
|
to self.unix_conversion {
|
||||||
fn ms_of_day(&self) -> u32;
|
fn ms_of_day(&self) -> u32;
|
||||||
fn ccsds_days_as_u32(&self) -> u32;
|
fn ccsds_days_as_u32(&self) -> u32;
|
||||||
@ -465,7 +463,7 @@ impl CdsCommon for ConversionFromNow {
|
|||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
impl CdsConverter for ConversionFromNow {
|
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")]
|
#[cfg(feature = "alloc")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user