dbg #592
Annotations
6 errors
this loop never actually loops:
src/server/actor.rs#L671
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() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
unsafe function's docs are missing a `# Safety` section:
src/helpers/mod.rs#L126
error: unsafe function's docs are missing a `# Safety` section
--> src/helpers/mod.rs:126:1
|
126 | / pub unsafe fn alloc_on_stream<T>(
127 | | device: &Arc<CudaDevice>,
128 | | len: usize,
129 | | stream: &CudaStream,
130 | | ) -> CudaSlice<T> {
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `-D clippy::missing-safety-doc` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::missing_safety_doc)]`
|
casting to the same type is unnecessary (`u64` -> `u64`):
src/dot/share_db.rs#L490
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/dot/share_db.rs:490:82
|
490 | println!("{}: db0 pointer for dev {}: {:#x}", self.peer_id, idx, *slice.device_ptr() as u64);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `{ *slice.device_ptr() }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u64` -> `u64`):
src/dot/share_db.rs#L473
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/dot/share_db.rs:473:82
|
473 | println!("{}: db1 pointer for dev {}: {:#x}", self.peer_id, idx, *slice.device_ptr() as u64);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `{ *slice.device_ptr() }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
|
unused variable: `sums`:
src/server/actor.rs#L675
error: unused variable: `sums`
--> src/server/actor.rs:675:33
|
675 | for (db, query, sums) in [
| ^^^^ help: if this is intentional, prefix it with an underscore: `_sums`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
|
unused import: `mem`:
src/server/actor.rs#L23
error: unused import: `mem`
--> src/server/actor.rs:23:5
|
23 | mem,
| ^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|