Skip to content

Commit ef5eee0

Browse files
committed
time: tweak type references
these should have pointed to the `timeval` mod via super after they were move here from super.
1 parent cba3ea0 commit ef5eee0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: pulse-binding/src/time/convert.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ impl From<Timeval> for Duration {
5656
impl From<MicroSeconds> for Timeval {
5757
#[inline]
5858
fn from(t: MicroSeconds) -> Self {
59-
let secs = (t.0 / MICROS_PER_SEC) as self::timeval::TvSecs;
60-
let micros = (t.0 % MICROS_PER_SEC) as self::timeval::TvUsecs;
59+
let secs = (t.0 / MICROS_PER_SEC) as super::timeval::TvSecs;
60+
let micros = (t.0 % MICROS_PER_SEC) as super::timeval::TvUsecs;
6161
Timeval::new(secs, micros)
6262
}
6363
}
6464

6565
impl From<Duration> for Timeval {
6666
#[inline]
6767
fn from(t: Duration) -> Self {
68-
let secs = t.as_secs() as self::timeval::TvSecs;
69-
let micros = t.subsec_micros() as self::timeval::TvUsecs;
68+
let secs = t.as_secs() as super::timeval::TvSecs;
69+
let micros = t.subsec_micros() as super::timeval::TvUsecs;
7070
Timeval::new(secs, micros)
7171
}
7272
}

0 commit comments

Comments
 (0)