We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de6aed commit 313bc79Copy full SHA for 313bc79
pulse-binding/src/time/timeval.rs
@@ -55,7 +55,7 @@ impl PartialOrd for Timeval {
55
56
impl Timeval {
57
/// Bit to set in `tv_usec` attribute to mark that the `timeval` is in monotonic time.
58
- const RTCLOCK_BIT: i64 = 1 << 30;
+ const RTCLOCK_BIT: TvUsecs = 1 << 30;
59
60
/// Creates a new instance, with values provided.
61
#[inline]
@@ -97,7 +97,7 @@ impl Timeval {
97
*self = v.into();
98
99
match rtclock {
100
- true => { self.0.tv_usec |= Self::RTCLOCK_BIT as TvUsecs; },
+ true => { self.0.tv_usec |= Self::RTCLOCK_BIT; },
101
false => { self.wallclock_from_rtclock(); },
102
}
103
self
0 commit comments