Skip to content
Triggered via push July 25, 2024 20:24
Status Success
Total duration 1m 14s
Billable time 3m
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

3 errors
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)]`