WIP - tremor-script VM #4244
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
tremor-script/src/vm/compiler/impls/imut_expr.rs|453 col 39| error: variables can be used directly in the format!
string
--> tremor-script/src/vm/compiler/impls/imut_expr.rs:453:39
|
453 | compiler.comment(&format!("Test tuple element {}", i));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
--> tremor-script/src/lib.rs:23:5
|
23 | clippy::pedantic,
| ^^^^^^^^^^^^^^^^
= note: #[deny(clippy::uninlined_format_args)]
implied by #[deny(clippy::pedantic)]
help: change this to
|
453 - compiler.comment(&format!("Test tuple element {}", i));
453 + compiler.comment(&format!("Test tuple element {i}"));
|
Filtered Findings (0)
Annotations
Check failure on line 453 in tremor-script/src/vm/compiler/impls/imut_expr.rs
github-actions / clippy
[clippy] tremor-script/src/vm/compiler/impls/imut_expr.rs#L453
error: variables can be used directly in the `format!` string
--> tremor-script/src/vm/compiler/impls/imut_expr.rs:453:39
|
453 | compiler.comment(&format!("Test tuple element {}", i));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
--> tremor-script/src/lib.rs:23:5
|
23 | clippy::pedantic,
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::uninlined_format_args)]` implied by `#[deny(clippy::pedantic)]`
help: change this to
|
453 - compiler.comment(&format!("Test tuple element {}", i));
453 + compiler.comment(&format!("Test tuple element {i}"));
|
Raw output
tremor-script/src/vm/compiler/impls/imut_expr.rs:453:39:e:error: variables can be used directly in the `format!` string
--> tremor-script/src/vm/compiler/impls/imut_expr.rs:453:39
|
453 | compiler.comment(&format!("Test tuple element {}", i));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
--> tremor-script/src/lib.rs:23:5
|
23 | clippy::pedantic,
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::uninlined_format_args)]` implied by `#[deny(clippy::pedantic)]`
help: change this to
|
453 - compiler.comment(&format!("Test tuple element {}", i));
453 + compiler.comment(&format!("Test tuple element {i}"));
|
__END__