Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Jul 26, 2024
1 parent 11ec921 commit 0d2ce28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ impl ServerActor {
i,
self.current_db_sizes[i]
);
break;
}

Check failure on line 779 in src/server/actor.rs

View workflow job for this annotation

GitHub Actions / clippy

this loop never actually loops

error: this loop never actually loops --> src/server/actor.rs:671:9 | 671 | / for i in 0..self.device_manager.device_count() { 672 | | self.device_manager.device(i).bind_to_thread().unwrap(); 673 | | for insertion_idx in insertion_list[i].clone() { 674 | | // Append to codes and masks db ... | 778 | | break; 779 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop = note: `#[deny(clippy::never_loop)]` on by default help: if you need the first element of the iterator, try writing | 671 | if let Some(i) = (0..self.device_manager.device_count()).next() { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

// Pass to internal sender thread
Expand Down

0 comments on commit 0d2ce28

Please sign in to comment.