std: Remove #[allow] directives in sys modules
These were suppressing lots of interesting warnings! Turns out there was also quite a bit of dead code.
This commit is contained in:
parent
206ee0e853
commit
c933d44f7b
35 changed files with 86 additions and 176 deletions
|
@ -58,11 +58,9 @@ mod inner {
|
|||
type Output = Duration;
|
||||
|
||||
fn sub(self, other: &SteadyTime) -> Duration {
|
||||
unsafe {
|
||||
let info = info();
|
||||
let diff = self.t as i64 - other.t as i64;
|
||||
Duration::nanoseconds(diff * info.numer as i64 / info.denom as i64)
|
||||
}
|
||||
let info = info();
|
||||
let diff = self.t as i64 - other.t as i64;
|
||||
Duration::nanoseconds(diff * info.numer as i64 / info.denom as i64)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue