Lint #550
Annotations
1 error
|
Run giraffate/[email protected]:
actix-rt/src/arbiter.rs#L169
[clippy] reported by reviewdog 🐶
error: variables can be used directly in the `format!` string
--> actix-rt/src/arbiter.rs:169:20
|
169 | let name = format!("actix-rt|system:{}|arbiter:{}", system_id, arb_id);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
169 - let name = format!("actix-rt|system:{}|arbiter:{}", system_id, arb_id);
169 + let name = format!("actix-rt|system:{system_id}|arbiter:{arb_id}");
|
Raw Output:
actix-rt/src/arbiter.rs:169:20:e:error: variables can be used directly in the `format!` string
--> actix-rt/src/arbiter.rs:169:20
|
169 | let name = format!("actix-rt|system:{}|arbiter:{}", system_id, arb_id);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
169 - let name = format!("actix-rt|system:{}|arbiter:{}", system_id, arb_id);
169 + let name = format!("actix-rt|system:{system_id}|arbiter:{arb_id}");
|
__END__
|
Loading