Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Mar 10, 2024
1 parent 1d5257d commit 9be3dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibc-primitives/src/types/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl Add<Duration> for Timestamp {

fn add(self, duration: Duration) -> Result<Self, TimestampOverflowError> {
self.time
.map(|time| (time + duration))
.map(|time| time + duration)
.transpose()
.map(|time| Self { time })
.map_err(|_| TimestampOverflowError::TimestampOverflow)
Expand All @@ -252,7 +252,7 @@ impl Sub<Duration> for Timestamp {

fn sub(self, duration: Duration) -> Result<Self, TimestampOverflowError> {
self.time
.map(|time| (time - duration))
.map(|time| time - duration)
.transpose()
.map(|time| Self { time })
.map_err(|_| TimestampOverflowError::TimestampOverflow)
Expand Down

0 comments on commit 9be3dc7

Please sign in to comment.