Skip to content

Commit

Permalink
Fix deprecated usage of TimeDelta::max_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
FirelightFlagboy committed Jan 6, 2025
1 parent 7a68983 commit 72e28a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fn task_future_factory(
let to_sleep = match due_time {
None => {
log::debug!("Workspace {realm_id}: sleeping forever");
Duration::max_value()
Duration::MAX
}
Some(due_time) => {
let duration = due_time - device.now();
Expand Down

0 comments on commit 72e28a0

Please sign in to comment.