add Add<Duration> for &UnixTimestamp
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good
This commit is contained in:
parent
74e489bd07
commit
fc76a975c1
@ -402,6 +402,14 @@ impl Add<Duration> for UnixTimestamp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Add<Duration> for &UnixTimestamp {
|
||||||
|
type Output = UnixTimestamp;
|
||||||
|
|
||||||
|
fn add(self, duration: Duration) -> Self::Output {
|
||||||
|
get_new_stamp_after_addition(self, duration)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(all(test, feature = "std"))]
|
#[cfg(all(test, feature = "std"))]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user