Skip to content

Commit

Permalink
fix lint and update docs deps
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jan 11, 2025
1 parent 5c15501 commit a5e7b6d
Show file tree
Hide file tree
Showing 6 changed files with 2,341 additions and 468 deletions.
2 changes: 1 addition & 1 deletion corcovado/src/sys/unix/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ const MILLIS_PER_SEC: u64 = 1_000;
/// million years.
pub fn millis(duration: Duration) -> u64 {
// Round up.
let millis = (duration.subsec_nanos() + NANOS_PER_MILLI - 1) / NANOS_PER_MILLI;
let millis = duration.subsec_nanos().div_ceil(NANOS_PER_MILLI);
duration
.as_secs()
.saturating_mul(MILLIS_PER_SEC)
Expand Down
Loading

0 comments on commit a5e7b6d

Please sign in to comment.