PR #570 #34
codeql
on: dynamic
Matrix: analyze
Annotations
3 warnings
|
implicit autoref creates a reference to the dereference of a raw pointer:
benchmark/src/runner/counter.rs#L32
warning: implicit autoref creates a reference to the dereference of a raw pointer
--> benchmark/src/runner/counter.rs:32:13
|
32 | (*self.costs.get())[idx] = cost;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
= note: `#[warn(dangerous_implicit_autorefs)]` on by default
help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
|
32 | (&mut (*self.costs.get()))[idx] = cost;
| +++++ +
|
|
useless use of `format!`:
volo-build/src/thrift_backend.rs#L772
warning: useless use of `format!`
--> volo-build/src/thrift_backend.rs:772:21
|
772 | format!("{ty}")
| ^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `ty.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|
|
useless use of `format!`:
volo-build/src/thrift_backend.rs#L772
warning: useless use of `format!`
--> volo-build/src/thrift_backend.rs:772:21
|
772 | format!("{ty}")
| ^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `ty.to_string()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
= note: `#[warn(clippy::useless_format)]` on by default
|