Skip to content

Commit

Permalink
fix useless conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mox692 committed Aug 1, 2024
1 parent d91a5b2 commit 0844ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/task/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl Id {

loop {
let id = NEXT_ID.fetch_add(1, Relaxed);
if let Some(id) = NonZeroU64::new(u64::from(id)) {
if let Some(id) = NonZeroU64::new(id) {
return Self(id);
}
}
Expand Down

0 comments on commit 0844ced

Please sign in to comment.