Skip to content

Commit 9c893e0

Browse files
committed
feat(stackable-shared): Support Duration to std Duration conversion
1 parent ee44001 commit 9c893e0

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
@@ -220,6 +220,12 @@ impl From<std::time::Duration> for Duration {
220220
}
221221
}
222222

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

0 commit comments

Comments
 (0)