Replace NonZero::<_>::new
with NonZero::new
.
This commit is contained in:
parent
746a58d435
commit
a90cc05233
70 changed files with 175 additions and 216 deletions
|
@ -68,10 +68,8 @@ impl QueryContext for QueryCtxt<'_> {
|
|||
#[inline]
|
||||
fn next_job_id(self) -> QueryJobId {
|
||||
QueryJobId(
|
||||
NonZero::<u64>::new(
|
||||
self.query_system.jobs.fetch_add(1, std::sync::atomic::Ordering::Relaxed),
|
||||
)
|
||||
.unwrap(),
|
||||
NonZero::new(self.query_system.jobs.fetch_add(1, std::sync::atomic::Ordering::Relaxed))
|
||||
.unwrap(),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue