mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-28 12:31:00 +00:00
Clippy
This commit is contained in:
parent
65e165af49
commit
9ceb26bb5c
2 changed files with 2 additions and 2 deletions
|
@ -452,7 +452,7 @@ where
|
|||
loop {
|
||||
tracing::trace!("heartbeat: looping");
|
||||
count += 1;
|
||||
count = count % yield_limit;
|
||||
count %= yield_limit;
|
||||
|
||||
// yield every 8 iterations to be kind to other tasks
|
||||
if count == 0 {
|
||||
|
|
|
@ -83,7 +83,7 @@ where
|
|||
tracing::trace!("from_iterator: looping");
|
||||
|
||||
count += 1;
|
||||
count = count % yield_count;
|
||||
count %= yield_count;
|
||||
|
||||
yielder.yield_(res).await;
|
||||
|
||||
|
|
Loading…
Reference in a new issue