Skip to content

Commit

Permalink
use constant instead of magic value
Browse files Browse the repository at this point in the history
  • Loading branch information
Erk- committed May 23, 2023
1 parent b017e60 commit 07f9a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/time/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl StateCell {
fn when(&self) -> Option<u64> {
let cur_state = self.state.load(Ordering::Relaxed);

if cur_state == u64::MAX {
if cur_state == STATE_DEREGISTERED {
None
} else {
Some(cur_state)
Expand Down

0 comments on commit 07f9a52

Please sign in to comment.