Skip to content

Commit 69bd3d6

Browse files
committed
feat(stackable-shared): Support Duration to std Duration conversion
1 parent b883bcd commit 69bd3d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/stackable-shared/src/time/duration.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ impl From<std::time::Duration> for Duration {
219219
}
220220
}
221221

222+
impl From<Duration> for std::time::Duration {
223+
fn from(value: Duration) -> Self {
224+
value.0
225+
}
226+
}
227+
222228
impl Add for Duration {
223229
type Output = Self;
224230

0 commit comments

Comments
 (0)