added note to release notes #212
testing.yml
on: push
Matrix: test-nodejs
Matrix: test-rust
Matrix: lint-rust
Matrix: coverage-nodejs
Matrix: coverage-rust
Matrix: coverage-finish
Annotations
223 warnings and 10 notices
variables can be used directly in the `format!` string:
src/main.rs#L78
warning: variables can be used directly in the `format!` string
--> src/main.rs:78:4
|
78 | println!("{}", msg);
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
78 - println!("{}", msg);
78 + println!("{msg}");
|
|
variables can be used directly in the `format!` string:
src/render.rs#L225
warning: variables can be used directly in the `format!` string
--> src/render.rs:225:5
|
225 | d(&format!("render() final output string: {:?}", text), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
225 - d(&format!("render() final output string: {:?}", text), 1, Dt::Log, &options, &mut std::io::stdout());
225 + d(&format!("render() final output string: {text:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L221
warning: variables can be used directly in the `format!` string
--> src/render.rs:221:10
|
221 | ... = format!("<div style=\"font-family:monospace;white-space:pre;text-align:{};max-width:100%;overflow:scroll;background:{}\">{}</div>", align, color, text);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
221 - text = format!("<div style=\"font-family:monospace;white-space:pre;text-align:{};max-width:100%;overflow:scroll;background:{}\">{}</div>", align, color, text);
221 + text = format!("<div style=\"font-family:monospace;white-space:pre;text-align:{align};max-width:100%;overflow:scroll;background:{color}\">{text}</div>");
|
|
variables can be used directly in the `format!` string:
src/render.rs#L203
warning: variables can be used directly in the `format!` string
--> src/render.rs:203:15
|
203 | output[0] = format!("{}{line_break}", open) + &output[0];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
203 - output[0] = format!("{}{line_break}", open) + &output[0];
203 + output[0] = format!("{open}{line_break}") + &output[0];
|
|
variables can be used directly in the `format!` string:
src/render.rs#L169
warning: variables can be used directly in the `format!` string
--> src/render.rs:169:9
|
169 | d(&format!("render()\npainted_letter:{:?}", painted_letter), 2, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
169 - d(&format!("render()\npainted_letter:{:?}", painted_letter), 2, Dt::Log, &options, &mut std::io::stdout());
169 + d(&format!("render()\npainted_letter:{painted_letter:?}"), 2, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L134
warning: variables can be used directly in the `format!` string
--> src/render.rs:134:8
|
134 | d(&format!("render()\nfont_letter:{:?}", font_letter), 2, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
134 - d(&format!("render()\nfont_letter:{:?}", font_letter), 2, Dt::Log, &options, &mut std::io::stdout());
134 + d(&format!("render()\nfont_letter:{font_letter:?}"), 2, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L131
warning: variables can be used directly in the `format!` string
--> src/render.rs:131:8
|
131 | d(&format!("render() ignoring unknown letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
131 - d(&format!("render() ignoring unknown letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
131 + d(&format!("render() ignoring unknown letter:{og_letter:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L125
warning: variables can be used directly in the `format!` string
--> src/render.rs:125:6
|
125 | d(&format!("render() \u{2022} loop og_letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
125 - d(&format!("render() \u{2022} loop og_letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
125 + d(&format!("render() \u{2022} loop og_letter:{og_letter:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L99
warning: variables can be used directly in the `format!` string
--> src/render.rs:99:4
|
99 | &format!(
| __________^
100 | | "render()\nletter_space:{:?}\nletter_space_len:{:?}\npainted_letter_space:{:?}",
101 | | letter_space, letter_space_len, painted_letter_space
102 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/render.rs#L93
warning: variables can be used directly in the `format!` string
--> src/render.rs:93:5
|
93 | d(&format!("render()\nletter_spacing:{:?}", letter_spacing), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
93 - d(&format!("render()\nletter_spacing:{:?}", letter_spacing), 1, Dt::Log, &options, &mut std::io::stdout());
93 + d(&format!("render()\nletter_spacing:{letter_spacing:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L78
warning: variables can be used directly in the `format!` string
--> src/render.rs:78:5
|
78 | d(&format!("render()\nterminal_width:{:?}", terminal_width), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
78 - d(&format!("render()\nterminal_width:{:?}", terminal_width), 1, Dt::Log, &options, &mut std::io::stdout());
78 + d(&format!("render()\nterminal_width:{terminal_width:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L60
warning: variables can be used directly in the `format!` string
--> src/render.rs:60:5
|
60 | d(&format!("render() Options\n{:#?}", options), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
60 - d(&format!("render() Options\n{:#?}", options), 1, Dt::Log, &options, &mut std::io::stdout());
60 + d(&format!("render() Options\n{options:#?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L465
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:465:5
|
465 | d(&format!("gradient::gradient() -> {:?}", output_with_gradient), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
465 - d(&format!("gradient::gradient() -> {:?}", output_with_gradient), 5, Dt::Log, options, &mut std::io::stdout());
465 + d(&format!("gradient::gradient() -> {output_with_gradient:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L427
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:427:4
|
427 | &format!(
| __________^
428 | | "gradient::gradient()\noutput:{:#?}\nlines:{}\nfont_lines:{}\noptions: {:?}",
429 | | output, lines, font_lines, options
430 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/gradient.rs#L392
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:392:5
|
392 | d(&format!("gradient::transition() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
392 - d(&format!("gradient::transition() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
392 + d(&format!("gradient::transition() -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L362
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:362:4
|
362 | &format!("gradient::transition()\ncolors:{:#?}\nsteps:{}", colors, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
362 - &format!("gradient::transition()\ncolors:{:#?}\nsteps:{}", colors, steps),
362 + &format!("gradient::transition()\ncolors:{colors:#?}\nsteps:{steps}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L313
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:313:5
|
313 | d(&format!("gradient::get_transition_steps() -> {:?}", gaps), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
313 - d(&format!("gradient::get_transition_steps() -> {:?}", gaps), 5, Dt::Log, options, &mut std::io::stdout());
313 + d(&format!("gradient::get_transition_steps() -> {gaps:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L294
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:294:4
|
294 | &format!("gradient::get_transition_steps()\ncolors:{:#?}\nsteps:{}", colors, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
294 - &format!("gradient::get_transition_steps()\ncolors:{:#?}\nsteps:{}", colors, steps),
294 + &format!("gradient::get_transition_steps()\ncolors:{colors:#?}\nsteps:{steps}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L270
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:270:5
|
270 | d(&format!("gradient::paint_lines() -> {:?}", colored_lines), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
270 - d(&format!("gradient::paint_lines() -> {:?}", colored_lines), 5, Dt::Log, options, &mut std::io::stdout());
270 + d(&format!("gradient::paint_lines() -> {colored_lines:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L250
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:250:4
|
250 | &format!("gradient::paint_lines()\nlines:{:#?}\ncolors:{:#?}\nfirst_char_pos:{}", lines, colors, first_char_pos),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
250 - &format!("gradient::paint_lines()\nlines:{:#?}\ncolors:{:#?}\nfirst_char_pos:{}", lines, colors, first_char_pos),
250 + &format!("gradient::paint_lines()\nlines:{lines:#?}\ncolors:{colors:#?}\nfirst_char_pos:{first_char_pos}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L223
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:223:5
|
223 | d(&format!("gradient::get_transition_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
223 - d(&format!("gradient::get_transition_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
223 + d(&format!("gradient::get_transition_colors() -> {colors:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L203
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:203:4
|
203 | &format!("gradient::get_transition_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
203 - &format!("gradient::get_transition_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
203 + &format!("gradient::get_transition_colors()\nfrom:{from:?}\nto:{to:?}\nsteps:{steps:?}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L176
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:176:5
|
176 | d(&format!("gradient::get_gradient_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
176 - d(&format!("gradient::get_gradient_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
176 + d(&format!("gradient::get_gradient_colors() -> {colors:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L156
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:156:4
|
156 | &format!("gradient::get_gradient_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
156 - &format!("gradient::get_gradient_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
156 + &format!("gradient::get_gradient_colors()\nfrom:{from:?}\nto:{to:?}\nsteps:{steps:?}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L120
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:120:5
|
120 | d(&format!("gradient::get_theta() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
120 - d(&format!("gradient::get_theta() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
120 + d(&format!("gradient::get_theta() -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
this multiplication by -1 can be written more succinctly:
src/gradient.rs#L107
warning: this multiplication by -1 can be written more succinctly
--> src/gradient.rs:107:19
|
107 | long_distance = -1.0 * (point_a - point_b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `-(point_a - point_b)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
= note: `#[warn(clippy::neg_multiply)]` on by default
|
variables can be used directly in the `format!` string:
src/gradient.rs#L94
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:94:6
|
94 | d(&format!("gradient::get_theta() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
94 - d(&format!("gradient::get_theta() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
94 + d(&format!("gradient::get_theta() -> {point_b:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L81
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:81:4
|
81 | &format!(
| __________^
82 | | "gradient::get_theta()\npoint_a:{:?}\npoint_b:{:?}\nthis_step:{:?}\nsteps:{:?}",
83 | | point_a, point_b, this_step, steps
84 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/gradient.rs#L51
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:51:5
|
51 | d(&format!("gradient::get_linear() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
51 - d(&format!("gradient::get_linear() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
51 + d(&format!("gradient::get_linear() -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L46
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:46:6
|
46 | d(&format!("gradient::get_linear() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
46 - d(&format!("gradient::get_linear() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
46 + d(&format!("gradient::get_linear() -> {point_b:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L35
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:35:4
|
35 | &format!(
| __________^
36 | | "gradient::get_linear()\npoint_a:{:?}\npoint_b:{:?}\nthis_step:{:?}\nsteps:{:?}",
37 | | point_a, point_b, this_step, steps
38 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/font.rs#L134
warning: variables can be used directly in the `format!` string
--> src/font.rs:134:11
|
134 | color(&format!("{}", error), Colors::Yellow)
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
134 - color(&format!("{}", error), Colors::Yellow)
134 + color(&format!("{error}"), Colors::Yellow)
|
|
variables can be used directly in the `format!` string:
src/config.rs#L194
warning: variables can be used directly in the `format!` string
--> src/config.rs:194:15
|
194 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
194 - let name = format!("{:?}", font);
194 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L182
warning: variables can be used directly in the `format!` string
--> src/config.rs:182:15
|
182 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
182 - let name = format!("{:?}", font);
182 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L166
warning: variables can be used directly in the `format!` string
--> src/config.rs:166:15
|
166 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
166 - let name = format!("{:?}", font);
166 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L150
warning: variables can be used directly in the `format!` string
--> src/config.rs:150:15
|
150 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
150 - let name = format!("{:?}", font);
150 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L137
warning: variables can be used directly in the `format!` string
--> src/config.rs:137:19
|
137 | let mut name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
137 - let mut name = format!("{:?}", font);
137 + let mut name = format!("{font:?}");
|
|
doc quote line without `>` marker:
src/config.rs#L80
warning: doc quote line without `>` marker
--> src/config.rs:80:5
|
80 | /// Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
80 | /// > Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| +
|
doc quote line without `>` marker:
src/config.rs#L47
warning: doc quote line without `>` marker
--> src/config.rs:47:5
|
47 | /// Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: add markers to start of line
|
47 | /// > Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| +
|
variables can be used directly in the `format!` string:
src/color.rs#L833
warning: variables can be used directly in the `format!` string
--> src/color.rs:833:3
|
833 | format!("{}{}{}", start, text, end)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
833 - format!("{}{}{}", start, text, end)
833 + format!("{start}{text}{end}")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L812
warning: variables can be used directly in the `format!` string
--> src/color.rs:812:3
|
812 | format!("{}{}{}", start, text, end)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
812 - format!("{}{}{}", start, text, end)
812 + format!("{start}{text}{end}")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L638
warning: variables can be used directly in the `format!` string
--> src/color.rs:638:2
|
638 | format!("\x1b[{}m", ansi_16_code)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
638 - format!("\x1b[{}m", ansi_16_code)
638 + format!("\x1b[{ansi_16_code}m")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L565
warning: variables can be used directly in the `format!` string
--> src/color.rs:565:2
|
565 | format!("\x1b[{};5;{}m", layer_code, code)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
565 - format!("\x1b[{};5;{}m", layer_code, code)
565 + format!("\x1b[{layer_code};5;{code}m")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L501
warning: variables can be used directly in the `format!` string
--> src/color.rs:501:2
|
501 | format!("\x1b[{};2;{};{};{}m", layer_code, r, g, b)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
501 - format!("\x1b[{};2;{};{};{}m", layer_code, r, g, b)
501 + format!("\x1b[{layer_code};2;{r};{g};{b}m")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L473
warning: variables can be used directly in the `format!` string
--> src/color.rs:473:5
|
473 | d(&format!("color::bgcolor2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
473 - d(&format!("color::bgcolor2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
473 + d(&format!("color::bgcolor2hex() -> {hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L448
warning: variables can be used directly in the `format!` string
--> src/color.rs:448:5
|
448 | d(&format!("color::bgcolor2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
448 - d(&format!("color::bgcolor2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
448 + d(&format!("color::bgcolor2hex()\ncolor:{color:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L428
warning: variables can be used directly in the `format!` string
--> src/color.rs:428:5
|
428 | d(&format!("color::color2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
428 - d(&format!("color::color2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
428 + d(&format!("color::color2hex() -> {hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L396
warning: variables can be used directly in the `format!` string
--> src/color.rs:396:5
|
396 | d(&format!("color::color2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
396 - d(&format!("color::color2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
396 + d(&format!("color::color2hex()\ncolor:{color:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L375
warning: variables can be used directly in the `format!` string
--> src/color.rs:375:5
|
375 | d(&format!("color::rsv2hex() {:?} -> {:?}", rsv, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
375 - d(&format!("color::rsv2hex() {:?} -> {:?}", rsv, result), 5, Dt::Log, options, &mut std::io::stdout());
375 + d(&format!("color::rsv2hex() {rsv:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L371
warning: variables can be used directly in the `format!` string
--> src/color.rs:371:5
|
371 | d(&format!("color::rsv2hex()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
371 - d(&format!("color::rsv2hex()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
371 + d(&format!("color::rsv2hex()\nrsv:{rsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L349
warning: variables can be used directly in the `format!` string
--> src/color.rs:349:5
|
349 | d(&format!("color::hex2rsv() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
349 - d(&format!("color::hex2rsv() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
349 + d(&format!("color::hex2rsv() {hex:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L345
warning: variables can be used directly in the `format!` string
--> src/color.rs:345:5
|
345 | d(&format!("color::hex2rsv()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
345 - d(&format!("color::hex2rsv()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
345 + d(&format!("color::hex2rsv()\nhex:{hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L317
warning: variables can be used directly in the `format!` string
--> src/color.rs:317:5
|
317 | d(&format!("color::rsv2hsv()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
317 - d(&format!("color::rsv2hsv()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
317 + d(&format!("color::rsv2hsv()\nrsv:{rsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L291
warning: variables can be used directly in the `format!` string
--> src/color.rs:291:5
|
291 | d(&format!("color::hsv2rsv()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
291 - d(&format!("color::hsv2rsv()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
291 + d(&format!("color::hsv2rsv()\nhsv:{hsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L270
warning: variables can be used directly in the `format!` string
--> src/color.rs:270:5
|
270 | d(&format!("color::hex2rgb() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
270 - d(&format!("color::hex2rgb() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
270 + d(&format!("color::hex2rgb() {hex:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L261
warning: variables can be used directly in the `format!` string
--> src/color.rs:261:4
|
261 | panic!("The input type of hex2rgb is hex and a hex color cannot be of length {}", i);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
261 - panic!("The input type of hex2rgb is hex and a hex color cannot be of length {}", i);
261 + panic!("The input type of hex2rgb is hex and a hex color cannot be of length {i}");
|
|
variables can be used directly in the `format!` string:
src/color.rs#L233
warning: variables can be used directly in the `format!` string
--> src/color.rs:233:5
|
233 | d(&format!("color::hex2rgb()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
233 - d(&format!("color::hex2rgb()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
233 + d(&format!("color::hex2rgb()\nhex:{hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L208
warning: variables can be used directly in the `format!` string
--> src/color.rs:208:5
|
208 | d(&format!("color::rgb2hex() {:?} -> {:?}", rgb, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
208 - d(&format!("color::rgb2hex() {:?} -> {:?}", rgb, result), 5, Dt::Log, options, &mut std::io::stdout());
208 + d(&format!("color::rgb2hex() {rgb:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L206
warning: variables can be used directly in the `format!` string
--> src/color.rs:206:15
|
206 | let result = format!("#{:0>2x}{:0>2x}{:0>2x}", r, g, b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
206 - let result = format!("#{:0>2x}{:0>2x}{:0>2x}", r, g, b);
206 + let result = format!("#{r:0>2x}{g:0>2x}{b:0>2x}");
|
|
variables can be used directly in the `format!` string:
src/color.rs#L203
warning: variables can be used directly in the `format!` string
--> src/color.rs:203:5
|
203 | d(&format!("color::rgb2hex()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
203 - d(&format!("color::rgb2hex()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
203 + d(&format!("color::rgb2hex()\nrgb:{rgb:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L179
warning: variables can be used directly in the `format!` string
--> src/color.rs:179:5
|
179 | d(&format!("color::hsv2rgb() {:?} -> {:?}", hsv, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
179 - d(&format!("color::hsv2rgb() {:?} -> {:?}", hsv, result), 5, Dt::Log, options, &mut std::io::stdout());
179 + d(&format!("color::hsv2rgb() {hsv:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L155
warning: variables can be used directly in the `format!` string
--> src/color.rs:155:5
|
155 | d(&format!("color::hsv2rgb()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
155 - d(&format!("color::hsv2rgb()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
155 + d(&format!("color::hsv2rgb()\nhsv:{hsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L107
warning: variables can be used directly in the `format!` string
--> src/color.rs:107:5
|
107 | d(&format!("color::rgb2hsv()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
107 - d(&format!("color::rgb2hsv()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
107 + d(&format!("color::rgb2hsv()\nrgb:{rgb:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L75
warning: variables can be used directly in the `format!` string
--> src/cli.rs:75:11
|
75 | let _ = writeln!(output, "{}", bold_end);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
75 - let _ = writeln!(output, "{}", bold_end);
75 + let _ = writeln!(output, "{bold_end}");
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L66
warning: variables can be used directly in the `format!` string
--> src/cli.rs:66:3
|
66 | writeln!(output, "Example: {}$ cfonts \"sexy font\" -f chrome -a center -c red,green,gray{}", bold_start, bold_end);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
66 - writeln!(output, "Example: {}$ cfonts \"sexy font\" -f chrome -a center -c red,green,gray{}", bold_start, bold_end);
66 + writeln!(output, "Example: {bold_start}$ cfonts \"sexy font\" -f chrome -a center -c red,green,gray{bold_end}");
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L27
warning: variables can be used directly in the `format!` string
--> src/cli.rs:27:2
|
27 | format!("v{}", version)
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
27 - format!("v{}", version)
27 + format!("v{version}")
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L25
warning: variables can be used directly in the `format!` string
--> src/cli.rs:25:5
|
25 | d(&format!("cli::version() version: {}", version), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
25 - d(&format!("cli::version() version: {}", version), 5, Dt::Log, options, &mut std::io::stdout());
25 + d(&format!("cli::version() version: {version}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L519
warning: variables can be used directly in the `format!` string
--> src/chars.rs:519:5
|
519 | d(&format!("chars::align_last_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
519 - d(&format!("chars::align_last_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
519 + d(&format!("chars::align_last_line() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L494
warning: variables can be used directly in the `format!` string
--> src/chars.rs:494:4
|
494 | &format!(
| __________^
495 | | "chars::align_last_line()\noutput:{:?}\nfont_lines:{:?}\nline_length:{:?}\nmax_length:{:?}",
496 | | output, font_lines, line_length, max_length
497 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/chars.rs#L454
warning: variables can be used directly in the `format!` string
--> src/chars.rs:454:5
|
454 | d(&format!("chars::paint_letter() -> {:?}", painted_letter), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
454 - d(&format!("chars::paint_letter() -> {:?}", painted_letter), 5, Dt::Log, options, &mut std::io::stdout());
454 + d(&format!("chars::paint_letter() -> {painted_letter:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L445
warning: variables can be used directly in the `format!` string
--> src/chars.rs:445:18
|
445 | let close = format!("</c{}>", i);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
445 - let close = format!("</c{}>", i);
445 + let close = format!("</c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L444
warning: variables can be used directly in the `format!` string
--> src/chars.rs:444:17
|
444 | let open = format!("<c{}>", i);
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
444 - let open = format!("<c{}>", i);
444 + let open = format!("<c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L435
warning: variables can be used directly in the `format!` string
--> src/chars.rs:435:18
|
435 | new_line = format!("{}{}{}", color_start, new_line, color_end);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
435 - new_line = format!("{}{}{}", color_start, new_line, color_end);
435 + new_line = format!("{color_start}{new_line}{color_end}");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L429
warning: variables can be used directly in the `format!` string
--> src/chars.rs:429:10
|
429 | (format!("<span style=\"color:{}\">", hex), String::from("</span>"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
429 - (format!("<span style=\"color:{}\">", hex), String::from("</span>"))
429 + (format!("<span style=\"color:{hex}\">"), String::from("</span>"))
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L357
warning: variables can be used directly in the `format!` string
--> src/chars.rs:357:5
|
357 | d(&format!("chars::get_letter_length() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
357 - d(&format!("chars::get_letter_length() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
357 + d(&format!("chars::get_letter_length() -> {size:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L345
warning: variables can be used directly in the `format!` string
--> src/chars.rs:345:17
|
345 | let close = format!("</c{}>", i);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
345 - let close = format!("</c{}>", i);
345 + let close = format!("</c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L344
warning: variables can be used directly in the `format!` string
--> src/chars.rs:344:16
|
344 | let open = format!("<c{}>", i);
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
344 - let open = format!("<c{}>", i);
344 + let open = format!("<c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L331
warning: variables can be used directly in the `format!` string
--> src/chars.rs:331:4
|
331 | &format!("chars::get_letter_length()\nchar:{:?}\nfont_color_count:{:?}", letter, font_color_count),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
331 - &format!("chars::get_letter_length()\nchar:{:?}\nfont_color_count:{:?}", letter, font_color_count),
331 + &format!("chars::get_letter_length()\nchar:{letter:?}\nfont_color_count:{font_color_count:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L304
warning: variables can be used directly in the `format!` string
--> src/chars.rs:304:5
|
304 | d(&format!("chars::get_first_char_position() -> {:?}", pos), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
304 - d(&format!("chars::get_first_char_position() -> {:?}", pos), 5, Dt::Log, options, &mut std::io::stdout());
304 + d(&format!("chars::get_first_char_position() -> {pos:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L293
warning: variables can be used directly in the `format!` string
--> src/chars.rs:293:5
|
293 | d(&format!("chars::get_first_char_position()\noutput:{:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
293 - d(&format!("chars::get_first_char_position()\noutput:{:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
293 + d(&format!("chars::get_first_char_position()\noutput:{output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L249
warning: variables can be used directly in the `format!` string
--> src/chars.rs:249:5
|
249 | d(&format!("chars::get_longest_line_len() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
249 - d(&format!("chars::get_longest_line_len() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
249 + d(&format!("chars::get_longest_line_len() -> {size:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L234
warning: variables can be used directly in the `format!` string
--> src/chars.rs:234:4
|
234 | &format!("chars::get_longest_line_len()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
234 - &format!("chars::get_longest_line_len()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
234 + &format!("chars::get_longest_line_len()\noutput:{output:?}\nfont_lines:{font_lines:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L208
warning: variables can be used directly in the `format!` string
--> src/chars.rs:208:5
|
208 | d(&format!("chars::add_line_height() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
208 - d(&format!("chars::add_line_height() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
208 + d(&format!("chars::add_line_height() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L197
warning: variables can be used directly in the `format!` string
--> src/chars.rs:197:4
|
197 | &format!("chars::add_line_height()\noutput:{:?}\nline_height:{:?}", output, line_height),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
197 - &format!("chars::add_line_height()\noutput:{:?}\nline_height:{:?}", output, line_height),
197 + &format!("chars::add_line_height()\noutput:{output:?}\nline_height:{line_height:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L163
warning: variables can be used directly in the `format!` string
--> src/chars.rs:163:5
|
163 | d(&format!("chars::add_letter() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
163 - d(&format!("chars::add_letter() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
163 + d(&format!("chars::add_letter() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L151
warning: variables can be used directly in the `format!` string
--> src/chars.rs:151:4
|
151 | &format!("chars::add_letter()\noutput:{:?}\nletter:{:?}", output, letter),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
151 - &format!("chars::add_letter()\noutput:{:?}\nletter:{:?}", output, letter),
151 + &format!("chars::add_letter()\noutput:{output:?}\nletter:{letter:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L114
warning: variables can be used directly in the `format!` string
--> src/chars.rs:114:5
|
114 | d(&format!("chars::add_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
114 - d(&format!("chars::add_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
114 + d(&format!("chars::add_line() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L103
warning: variables can be used directly in the `format!` string
--> src/chars.rs:103:4
|
103 | &format!("chars::add_line()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
103 - &format!("chars::add_line()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
103 + &format!("chars::add_line()\noutput:{output:?}\nfont_lines:{font_lines:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L67
warning: variables can be used directly in the `format!` string
--> src/chars.rs:67:5
|
67 | d(&format!("chars::get_letter_space() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
67 - d(&format!("chars::get_letter_space() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
67 + d(&format!("chars::get_letter_space() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L49
warning: variables can be used directly in the `format!` string
--> src/chars.rs:49:4
|
49 | &format!("chars::get_letter_space()\nletter_space:{:?}\noptions.letter_spacing:{:?}", letter_space, letter_spacing),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
49 - &format!("chars::get_letter_space()\nletter_space:{:?}\noptions.letter_spacing:{:?}", letter_space, letter_spacing),
49 + &format!("chars::get_letter_space()\nletter_space:{letter_space:?}\noptions.letter_spacing:{letter_spacing:?}"),
|
|
variables can be used directly in the `format!` string:
src/args.rs#L216
warning: variables can be used directly in the `format!` string
--> src/args.rs:216:21
|
216 | let flag_name = format!("-{}", flag);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
216 - let flag_name = format!("-{}", flag);
216 + let flag_name = format!("-{flag}");
|
|
variables can be used directly in the `format!` string:
src/args.rs#L181
warning: variables can be used directly in the `format!` string
--> src/args.rs:181:14
|
181 | return Err(format!(
| ____________________^
182 | | "Please provide text to convert with: {start}cfonts \"Text\"{end}\nRun {start}cfonts --help{end} for more infos",
183 | | start = start,
184 | | end = end
185 | | ));
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
|
variables can be used directly in the `format!` string:
src/lib.rs#L127
warning: variables can be used directly in the `format!` string
--> src/lib.rs:127:5
|
127 | d(&format!("say() Options:\n{:#?}", options), 2, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
127 - d(&format!("say() Options:\n{:#?}", options), 2, Dt::Log, &options, &mut std::io::stdout());
127 + d(&format!("say() Options:\n{options:#?}"), 2, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L225
warning: variables can be used directly in the `format!` string
--> src/render.rs:225:5
|
225 | d(&format!("render() final output string: {:?}", text), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
225 - d(&format!("render() final output string: {:?}", text), 1, Dt::Log, &options, &mut std::io::stdout());
225 + d(&format!("render() final output string: {text:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L221
warning: variables can be used directly in the `format!` string
--> src/render.rs:221:10
|
221 | ... = format!("<div style=\"font-family:monospace;white-space:pre;text-align:{};max-width:100%;overflow:scroll;background:{}\">{}</div>", align, color, text);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
221 - text = format!("<div style=\"font-family:monospace;white-space:pre;text-align:{};max-width:100%;overflow:scroll;background:{}\">{}</div>", align, color, text);
221 + text = format!("<div style=\"font-family:monospace;white-space:pre;text-align:{align};max-width:100%;overflow:scroll;background:{color}\">{text}</div>");
|
|
variables can be used directly in the `format!` string:
src/render.rs#L203
warning: variables can be used directly in the `format!` string
--> src/render.rs:203:15
|
203 | output[0] = format!("{}{line_break}", open) + &output[0];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
203 - output[0] = format!("{}{line_break}", open) + &output[0];
203 + output[0] = format!("{open}{line_break}") + &output[0];
|
|
variables can be used directly in the `format!` string:
src/render.rs#L169
warning: variables can be used directly in the `format!` string
--> src/render.rs:169:9
|
169 | d(&format!("render()\npainted_letter:{:?}", painted_letter), 2, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
169 - d(&format!("render()\npainted_letter:{:?}", painted_letter), 2, Dt::Log, &options, &mut std::io::stdout());
169 + d(&format!("render()\npainted_letter:{painted_letter:?}"), 2, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L134
warning: variables can be used directly in the `format!` string
--> src/render.rs:134:8
|
134 | d(&format!("render()\nfont_letter:{:?}", font_letter), 2, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
134 - d(&format!("render()\nfont_letter:{:?}", font_letter), 2, Dt::Log, &options, &mut std::io::stdout());
134 + d(&format!("render()\nfont_letter:{font_letter:?}"), 2, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L131
warning: variables can be used directly in the `format!` string
--> src/render.rs:131:8
|
131 | d(&format!("render() ignoring unknown letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
131 - d(&format!("render() ignoring unknown letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
131 + d(&format!("render() ignoring unknown letter:{og_letter:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L125
warning: variables can be used directly in the `format!` string
--> src/render.rs:125:6
|
125 | d(&format!("render() \u{2022} loop og_letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
125 - d(&format!("render() \u{2022} loop og_letter:{:?}", og_letter), 1, Dt::Log, &options, &mut std::io::stdout());
125 + d(&format!("render() \u{2022} loop og_letter:{og_letter:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L99
warning: variables can be used directly in the `format!` string
--> src/render.rs:99:4
|
99 | &format!(
| __________^
100 | | "render()\nletter_space:{:?}\nletter_space_len:{:?}\npainted_letter_space:{:?}",
101 | | letter_space, letter_space_len, painted_letter_space
102 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/render.rs#L93
warning: variables can be used directly in the `format!` string
--> src/render.rs:93:5
|
93 | d(&format!("render()\nletter_spacing:{:?}", letter_spacing), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
93 - d(&format!("render()\nletter_spacing:{:?}", letter_spacing), 1, Dt::Log, &options, &mut std::io::stdout());
93 + d(&format!("render()\nletter_spacing:{letter_spacing:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L78
warning: variables can be used directly in the `format!` string
--> src/render.rs:78:5
|
78 | d(&format!("render()\nterminal_width:{:?}", terminal_width), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
78 - d(&format!("render()\nterminal_width:{:?}", terminal_width), 1, Dt::Log, &options, &mut std::io::stdout());
78 + d(&format!("render()\nterminal_width:{terminal_width:?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/render.rs#L60
warning: variables can be used directly in the `format!` string
--> src/render.rs:60:5
|
60 | d(&format!("render() Options\n{:#?}", options), 1, Dt::Log, &options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
60 - d(&format!("render() Options\n{:#?}", options), 1, Dt::Log, &options, &mut std::io::stdout());
60 + d(&format!("render() Options\n{options:#?}"), 1, Dt::Log, &options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L465
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:465:5
|
465 | d(&format!("gradient::gradient() -> {:?}", output_with_gradient), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
465 - d(&format!("gradient::gradient() -> {:?}", output_with_gradient), 5, Dt::Log, options, &mut std::io::stdout());
465 + d(&format!("gradient::gradient() -> {output_with_gradient:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L427
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:427:4
|
427 | &format!(
| __________^
428 | | "gradient::gradient()\noutput:{:#?}\nlines:{}\nfont_lines:{}\noptions: {:?}",
429 | | output, lines, font_lines, options
430 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/gradient.rs#L392
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:392:5
|
392 | d(&format!("gradient::transition() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
392 - d(&format!("gradient::transition() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
392 + d(&format!("gradient::transition() -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L362
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:362:4
|
362 | &format!("gradient::transition()\ncolors:{:#?}\nsteps:{}", colors, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
362 - &format!("gradient::transition()\ncolors:{:#?}\nsteps:{}", colors, steps),
362 + &format!("gradient::transition()\ncolors:{colors:#?}\nsteps:{steps}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L313
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:313:5
|
313 | d(&format!("gradient::get_transition_steps() -> {:?}", gaps), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
313 - d(&format!("gradient::get_transition_steps() -> {:?}", gaps), 5, Dt::Log, options, &mut std::io::stdout());
313 + d(&format!("gradient::get_transition_steps() -> {gaps:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L294
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:294:4
|
294 | &format!("gradient::get_transition_steps()\ncolors:{:#?}\nsteps:{}", colors, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
294 - &format!("gradient::get_transition_steps()\ncolors:{:#?}\nsteps:{}", colors, steps),
294 + &format!("gradient::get_transition_steps()\ncolors:{colors:#?}\nsteps:{steps}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L270
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:270:5
|
270 | d(&format!("gradient::paint_lines() -> {:?}", colored_lines), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
270 - d(&format!("gradient::paint_lines() -> {:?}", colored_lines), 5, Dt::Log, options, &mut std::io::stdout());
270 + d(&format!("gradient::paint_lines() -> {colored_lines:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L250
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:250:4
|
250 | &format!("gradient::paint_lines()\nlines:{:#?}\ncolors:{:#?}\nfirst_char_pos:{}", lines, colors, first_char_pos),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
250 - &format!("gradient::paint_lines()\nlines:{:#?}\ncolors:{:#?}\nfirst_char_pos:{}", lines, colors, first_char_pos),
250 + &format!("gradient::paint_lines()\nlines:{lines:#?}\ncolors:{colors:#?}\nfirst_char_pos:{first_char_pos}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L223
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:223:5
|
223 | d(&format!("gradient::get_transition_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
223 - d(&format!("gradient::get_transition_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
223 + d(&format!("gradient::get_transition_colors() -> {colors:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L203
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:203:4
|
203 | &format!("gradient::get_transition_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
203 - &format!("gradient::get_transition_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
203 + &format!("gradient::get_transition_colors()\nfrom:{from:?}\nto:{to:?}\nsteps:{steps:?}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L176
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:176:5
|
176 | d(&format!("gradient::get_gradient_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
176 - d(&format!("gradient::get_gradient_colors() -> {:?}", colors), 5, Dt::Log, options, &mut std::io::stdout());
176 + d(&format!("gradient::get_gradient_colors() -> {colors:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L156
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:156:4
|
156 | &format!("gradient::get_gradient_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
156 - &format!("gradient::get_gradient_colors()\nfrom:{:?}\nto:{:?}\nsteps:{:?}", from, to, steps),
156 + &format!("gradient::get_gradient_colors()\nfrom:{from:?}\nto:{to:?}\nsteps:{steps:?}"),
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L120
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:120:5
|
120 | d(&format!("gradient::get_theta() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
120 - d(&format!("gradient::get_theta() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
120 + d(&format!("gradient::get_theta() -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
this multiplication by -1 can be written more succinctly:
src/gradient.rs#L107
warning: this multiplication by -1 can be written more succinctly
--> src/gradient.rs:107:19
|
107 | long_distance = -1.0 * (point_a - point_b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `-(point_a - point_b)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
= note: `#[warn(clippy::neg_multiply)]` on by default
|
variables can be used directly in the `format!` string:
src/gradient.rs#L94
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:94:6
|
94 | d(&format!("gradient::get_theta() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
94 - d(&format!("gradient::get_theta() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
94 + d(&format!("gradient::get_theta() -> {point_b:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L81
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:81:4
|
81 | &format!(
| __________^
82 | | "gradient::get_theta()\npoint_a:{:?}\npoint_b:{:?}\nthis_step:{:?}\nsteps:{:?}",
83 | | point_a, point_b, this_step, steps
84 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/gradient.rs#L51
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:51:5
|
51 | d(&format!("gradient::get_linear() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
51 - d(&format!("gradient::get_linear() -> {:?}", result), 5, Dt::Log, options, &mut std::io::stdout());
51 + d(&format!("gradient::get_linear() -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L46
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:46:6
|
46 | d(&format!("gradient::get_linear() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
46 - d(&format!("gradient::get_linear() -> {:?}", point_b), 5, Dt::Log, options, &mut std::io::stdout());
46 + d(&format!("gradient::get_linear() -> {point_b:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/gradient.rs#L35
warning: variables can be used directly in the `format!` string
--> src/gradient.rs:35:4
|
35 | &format!(
| __________^
36 | | "gradient::get_linear()\npoint_a:{:?}\npoint_b:{:?}\nthis_step:{:?}\nsteps:{:?}",
37 | | point_a, point_b, this_step, steps
38 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/font.rs#L134
warning: variables can be used directly in the `format!` string
--> src/font.rs:134:11
|
134 | color(&format!("{}", error), Colors::Yellow)
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
134 - color(&format!("{}", error), Colors::Yellow)
134 + color(&format!("{error}"), Colors::Yellow)
|
|
variables can be used directly in the `format!` string:
src/config.rs#L194
warning: variables can be used directly in the `format!` string
--> src/config.rs:194:15
|
194 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
194 - let name = format!("{:?}", font);
194 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L182
warning: variables can be used directly in the `format!` string
--> src/config.rs:182:15
|
182 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
182 - let name = format!("{:?}", font);
182 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L166
warning: variables can be used directly in the `format!` string
--> src/config.rs:166:15
|
166 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
166 - let name = format!("{:?}", font);
166 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L150
warning: variables can be used directly in the `format!` string
--> src/config.rs:150:15
|
150 | let name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
150 - let name = format!("{:?}", font);
150 + let name = format!("{font:?}");
|
|
variables can be used directly in the `format!` string:
src/config.rs#L137
warning: variables can be used directly in the `format!` string
--> src/config.rs:137:19
|
137 | let mut name = format!("{:?}", font);
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
137 - let mut name = format!("{:?}", font);
137 + let mut name = format!("{font:?}");
|
|
doc quote line without `>` marker:
src/config.rs#L80
warning: doc quote line without `>` marker
--> src/config.rs:80:5
|
80 | /// Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
80 | /// > Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| +
|
doc quote line without `>` marker:
src/config.rs#L47
warning: doc quote line without `>` marker
--> src/config.rs:47:5
|
47 | /// Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: add markers to start of line
|
47 | /// > Colors also respect both `NO_COLOR` and `FORCE_COLOR` env vars.
| +
|
variables can be used directly in the `format!` string:
src/color.rs#L833
warning: variables can be used directly in the `format!` string
--> src/color.rs:833:3
|
833 | format!("{}{}{}", start, text, end)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
833 - format!("{}{}{}", start, text, end)
833 + format!("{start}{text}{end}")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L812
warning: variables can be used directly in the `format!` string
--> src/color.rs:812:3
|
812 | format!("{}{}{}", start, text, end)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
812 - format!("{}{}{}", start, text, end)
812 + format!("{start}{text}{end}")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L638
warning: variables can be used directly in the `format!` string
--> src/color.rs:638:2
|
638 | format!("\x1b[{}m", ansi_16_code)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
638 - format!("\x1b[{}m", ansi_16_code)
638 + format!("\x1b[{ansi_16_code}m")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L565
warning: variables can be used directly in the `format!` string
--> src/color.rs:565:2
|
565 | format!("\x1b[{};5;{}m", layer_code, code)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
565 - format!("\x1b[{};5;{}m", layer_code, code)
565 + format!("\x1b[{layer_code};5;{code}m")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L501
warning: variables can be used directly in the `format!` string
--> src/color.rs:501:2
|
501 | format!("\x1b[{};2;{};{};{}m", layer_code, r, g, b)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
501 - format!("\x1b[{};2;{};{};{}m", layer_code, r, g, b)
501 + format!("\x1b[{layer_code};2;{r};{g};{b}m")
|
|
variables can be used directly in the `format!` string:
src/color.rs#L473
warning: variables can be used directly in the `format!` string
--> src/color.rs:473:5
|
473 | d(&format!("color::bgcolor2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
473 - d(&format!("color::bgcolor2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
473 + d(&format!("color::bgcolor2hex() -> {hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L448
warning: variables can be used directly in the `format!` string
--> src/color.rs:448:5
|
448 | d(&format!("color::bgcolor2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
448 - d(&format!("color::bgcolor2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
448 + d(&format!("color::bgcolor2hex()\ncolor:{color:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L428
warning: variables can be used directly in the `format!` string
--> src/color.rs:428:5
|
428 | d(&format!("color::color2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
428 - d(&format!("color::color2hex() -> {:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
428 + d(&format!("color::color2hex() -> {hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L396
warning: variables can be used directly in the `format!` string
--> src/color.rs:396:5
|
396 | d(&format!("color::color2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
396 - d(&format!("color::color2hex()\ncolor:{:?}", color), 5, Dt::Log, options, &mut std::io::stdout());
396 + d(&format!("color::color2hex()\ncolor:{color:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L375
warning: variables can be used directly in the `format!` string
--> src/color.rs:375:5
|
375 | d(&format!("color::rsv2hex() {:?} -> {:?}", rsv, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
375 - d(&format!("color::rsv2hex() {:?} -> {:?}", rsv, result), 5, Dt::Log, options, &mut std::io::stdout());
375 + d(&format!("color::rsv2hex() {rsv:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L371
warning: variables can be used directly in the `format!` string
--> src/color.rs:371:5
|
371 | d(&format!("color::rsv2hex()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
371 - d(&format!("color::rsv2hex()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
371 + d(&format!("color::rsv2hex()\nrsv:{rsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L349
warning: variables can be used directly in the `format!` string
--> src/color.rs:349:5
|
349 | d(&format!("color::hex2rsv() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
349 - d(&format!("color::hex2rsv() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
349 + d(&format!("color::hex2rsv() {hex:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L345
warning: variables can be used directly in the `format!` string
--> src/color.rs:345:5
|
345 | d(&format!("color::hex2rsv()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
345 - d(&format!("color::hex2rsv()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
345 + d(&format!("color::hex2rsv()\nhex:{hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L317
warning: variables can be used directly in the `format!` string
--> src/color.rs:317:5
|
317 | d(&format!("color::rsv2hsv()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
317 - d(&format!("color::rsv2hsv()\nrsv:{:?}", rsv), 5, Dt::Log, options, &mut std::io::stdout());
317 + d(&format!("color::rsv2hsv()\nrsv:{rsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L291
warning: variables can be used directly in the `format!` string
--> src/color.rs:291:5
|
291 | d(&format!("color::hsv2rsv()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
291 - d(&format!("color::hsv2rsv()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
291 + d(&format!("color::hsv2rsv()\nhsv:{hsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L270
warning: variables can be used directly in the `format!` string
--> src/color.rs:270:5
|
270 | d(&format!("color::hex2rgb() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
270 - d(&format!("color::hex2rgb() {:?} -> {:?}", hex, result), 5, Dt::Log, options, &mut std::io::stdout());
270 + d(&format!("color::hex2rgb() {hex:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L261
warning: variables can be used directly in the `format!` string
--> src/color.rs:261:4
|
261 | panic!("The input type of hex2rgb is hex and a hex color cannot be of length {}", i);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
261 - panic!("The input type of hex2rgb is hex and a hex color cannot be of length {}", i);
261 + panic!("The input type of hex2rgb is hex and a hex color cannot be of length {i}");
|
|
variables can be used directly in the `format!` string:
src/color.rs#L233
warning: variables can be used directly in the `format!` string
--> src/color.rs:233:5
|
233 | d(&format!("color::hex2rgb()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
233 - d(&format!("color::hex2rgb()\nhex:{:?}", hex), 5, Dt::Log, options, &mut std::io::stdout());
233 + d(&format!("color::hex2rgb()\nhex:{hex:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L208
warning: variables can be used directly in the `format!` string
--> src/color.rs:208:5
|
208 | d(&format!("color::rgb2hex() {:?} -> {:?}", rgb, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
208 - d(&format!("color::rgb2hex() {:?} -> {:?}", rgb, result), 5, Dt::Log, options, &mut std::io::stdout());
208 + d(&format!("color::rgb2hex() {rgb:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L206
warning: variables can be used directly in the `format!` string
--> src/color.rs:206:15
|
206 | let result = format!("#{:0>2x}{:0>2x}{:0>2x}", r, g, b);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
206 - let result = format!("#{:0>2x}{:0>2x}{:0>2x}", r, g, b);
206 + let result = format!("#{r:0>2x}{g:0>2x}{b:0>2x}");
|
|
variables can be used directly in the `format!` string:
src/color.rs#L203
warning: variables can be used directly in the `format!` string
--> src/color.rs:203:5
|
203 | d(&format!("color::rgb2hex()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
203 - d(&format!("color::rgb2hex()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
203 + d(&format!("color::rgb2hex()\nrgb:{rgb:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L179
warning: variables can be used directly in the `format!` string
--> src/color.rs:179:5
|
179 | d(&format!("color::hsv2rgb() {:?} -> {:?}", hsv, result), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
179 - d(&format!("color::hsv2rgb() {:?} -> {:?}", hsv, result), 5, Dt::Log, options, &mut std::io::stdout());
179 + d(&format!("color::hsv2rgb() {hsv:?} -> {result:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L155
warning: variables can be used directly in the `format!` string
--> src/color.rs:155:5
|
155 | d(&format!("color::hsv2rgb()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
155 - d(&format!("color::hsv2rgb()\nhsv:{:?}", hsv), 5, Dt::Log, options, &mut std::io::stdout());
155 + d(&format!("color::hsv2rgb()\nhsv:{hsv:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/color.rs#L107
warning: variables can be used directly in the `format!` string
--> src/color.rs:107:5
|
107 | d(&format!("color::rgb2hsv()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
107 - d(&format!("color::rgb2hsv()\nrgb:{:?}", rgb), 5, Dt::Log, options, &mut std::io::stdout());
107 + d(&format!("color::rgb2hsv()\nrgb:{rgb:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L75
warning: variables can be used directly in the `format!` string
--> src/cli.rs:75:11
|
75 | let _ = writeln!(output, "{}", bold_end);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
75 - let _ = writeln!(output, "{}", bold_end);
75 + let _ = writeln!(output, "{bold_end}");
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L66
warning: variables can be used directly in the `format!` string
--> src/cli.rs:66:3
|
66 | writeln!(output, "Example: {}$ cfonts \"sexy font\" -f chrome -a center -c red,green,gray{}", bold_start, bold_end);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
66 - writeln!(output, "Example: {}$ cfonts \"sexy font\" -f chrome -a center -c red,green,gray{}", bold_start, bold_end);
66 + writeln!(output, "Example: {bold_start}$ cfonts \"sexy font\" -f chrome -a center -c red,green,gray{bold_end}");
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L27
warning: variables can be used directly in the `format!` string
--> src/cli.rs:27:2
|
27 | format!("v{}", version)
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
27 - format!("v{}", version)
27 + format!("v{version}")
|
|
variables can be used directly in the `format!` string:
src/cli.rs#L25
warning: variables can be used directly in the `format!` string
--> src/cli.rs:25:5
|
25 | d(&format!("cli::version() version: {}", version), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
25 - d(&format!("cli::version() version: {}", version), 5, Dt::Log, options, &mut std::io::stdout());
25 + d(&format!("cli::version() version: {version}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L519
warning: variables can be used directly in the `format!` string
--> src/chars.rs:519:5
|
519 | d(&format!("chars::align_last_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
519 - d(&format!("chars::align_last_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
519 + d(&format!("chars::align_last_line() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L494
warning: variables can be used directly in the `format!` string
--> src/chars.rs:494:4
|
494 | &format!(
| __________^
495 | | "chars::align_last_line()\noutput:{:?}\nfont_lines:{:?}\nline_length:{:?}\nmax_length:{:?}",
496 | | output, font_lines, line_length, max_length
497 | | ),
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
variables can be used directly in the `format!` string:
src/chars.rs#L454
warning: variables can be used directly in the `format!` string
--> src/chars.rs:454:5
|
454 | d(&format!("chars::paint_letter() -> {:?}", painted_letter), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
454 - d(&format!("chars::paint_letter() -> {:?}", painted_letter), 5, Dt::Log, options, &mut std::io::stdout());
454 + d(&format!("chars::paint_letter() -> {painted_letter:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L445
warning: variables can be used directly in the `format!` string
--> src/chars.rs:445:18
|
445 | let close = format!("</c{}>", i);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
445 - let close = format!("</c{}>", i);
445 + let close = format!("</c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L444
warning: variables can be used directly in the `format!` string
--> src/chars.rs:444:17
|
444 | let open = format!("<c{}>", i);
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
444 - let open = format!("<c{}>", i);
444 + let open = format!("<c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L435
warning: variables can be used directly in the `format!` string
--> src/chars.rs:435:18
|
435 | new_line = format!("{}{}{}", color_start, new_line, color_end);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
435 - new_line = format!("{}{}{}", color_start, new_line, color_end);
435 + new_line = format!("{color_start}{new_line}{color_end}");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L429
warning: variables can be used directly in the `format!` string
--> src/chars.rs:429:10
|
429 | (format!("<span style=\"color:{}\">", hex), String::from("</span>"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
429 - (format!("<span style=\"color:{}\">", hex), String::from("</span>"))
429 + (format!("<span style=\"color:{hex}\">"), String::from("</span>"))
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L357
warning: variables can be used directly in the `format!` string
--> src/chars.rs:357:5
|
357 | d(&format!("chars::get_letter_length() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
357 - d(&format!("chars::get_letter_length() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
357 + d(&format!("chars::get_letter_length() -> {size:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L345
warning: variables can be used directly in the `format!` string
--> src/chars.rs:345:17
|
345 | let close = format!("</c{}>", i);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
345 - let close = format!("</c{}>", i);
345 + let close = format!("</c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L344
warning: variables can be used directly in the `format!` string
--> src/chars.rs:344:16
|
344 | let open = format!("<c{}>", i);
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
344 - let open = format!("<c{}>", i);
344 + let open = format!("<c{i}>");
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L331
warning: variables can be used directly in the `format!` string
--> src/chars.rs:331:4
|
331 | &format!("chars::get_letter_length()\nchar:{:?}\nfont_color_count:{:?}", letter, font_color_count),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
331 - &format!("chars::get_letter_length()\nchar:{:?}\nfont_color_count:{:?}", letter, font_color_count),
331 + &format!("chars::get_letter_length()\nchar:{letter:?}\nfont_color_count:{font_color_count:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L304
warning: variables can be used directly in the `format!` string
--> src/chars.rs:304:5
|
304 | d(&format!("chars::get_first_char_position() -> {:?}", pos), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
304 - d(&format!("chars::get_first_char_position() -> {:?}", pos), 5, Dt::Log, options, &mut std::io::stdout());
304 + d(&format!("chars::get_first_char_position() -> {pos:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L293
warning: variables can be used directly in the `format!` string
--> src/chars.rs:293:5
|
293 | d(&format!("chars::get_first_char_position()\noutput:{:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
293 - d(&format!("chars::get_first_char_position()\noutput:{:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
293 + d(&format!("chars::get_first_char_position()\noutput:{output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L249
warning: variables can be used directly in the `format!` string
--> src/chars.rs:249:5
|
249 | d(&format!("chars::get_longest_line_len() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
249 - d(&format!("chars::get_longest_line_len() -> {:?}", size), 5, Dt::Log, options, &mut std::io::stdout());
249 + d(&format!("chars::get_longest_line_len() -> {size:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L234
warning: variables can be used directly in the `format!` string
--> src/chars.rs:234:4
|
234 | &format!("chars::get_longest_line_len()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
234 - &format!("chars::get_longest_line_len()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
234 + &format!("chars::get_longest_line_len()\noutput:{output:?}\nfont_lines:{font_lines:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L208
warning: variables can be used directly in the `format!` string
--> src/chars.rs:208:5
|
208 | d(&format!("chars::add_line_height() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
208 - d(&format!("chars::add_line_height() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
208 + d(&format!("chars::add_line_height() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L197
warning: variables can be used directly in the `format!` string
--> src/chars.rs:197:4
|
197 | &format!("chars::add_line_height()\noutput:{:?}\nline_height:{:?}", output, line_height),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
197 - &format!("chars::add_line_height()\noutput:{:?}\nline_height:{:?}", output, line_height),
197 + &format!("chars::add_line_height()\noutput:{output:?}\nline_height:{line_height:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L163
warning: variables can be used directly in the `format!` string
--> src/chars.rs:163:5
|
163 | d(&format!("chars::add_letter() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
163 - d(&format!("chars::add_letter() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
163 + d(&format!("chars::add_letter() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L151
warning: variables can be used directly in the `format!` string
--> src/chars.rs:151:4
|
151 | &format!("chars::add_letter()\noutput:{:?}\nletter:{:?}", output, letter),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
151 - &format!("chars::add_letter()\noutput:{:?}\nletter:{:?}", output, letter),
151 + &format!("chars::add_letter()\noutput:{output:?}\nletter:{letter:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L114
warning: variables can be used directly in the `format!` string
--> src/chars.rs:114:5
|
114 | d(&format!("chars::add_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
114 - d(&format!("chars::add_line() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
114 + d(&format!("chars::add_line() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L103
warning: variables can be used directly in the `format!` string
--> src/chars.rs:103:4
|
103 | &format!("chars::add_line()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
103 - &format!("chars::add_line()\noutput:{:?}\nfont_lines:{:?}", output, font_lines),
103 + &format!("chars::add_line()\noutput:{output:?}\nfont_lines:{font_lines:?}"),
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L67
warning: variables can be used directly in the `format!` string
--> src/chars.rs:67:5
|
67 | d(&format!("chars::get_letter_space() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
67 - d(&format!("chars::get_letter_space() -> {:?}", output), 5, Dt::Log, options, &mut std::io::stdout());
67 + d(&format!("chars::get_letter_space() -> {output:?}"), 5, Dt::Log, options, &mut std::io::stdout());
|
|
variables can be used directly in the `format!` string:
src/chars.rs#L49
warning: variables can be used directly in the `format!` string
--> src/chars.rs:49:4
|
49 | &format!("chars::get_letter_space()\nletter_space:{:?}\noptions.letter_spacing:{:?}", letter_space, letter_spacing),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
49 - &format!("chars::get_letter_space()\nletter_space:{:?}\noptions.letter_spacing:{:?}", letter_space, letter_spacing),
49 + &format!("chars::get_letter_space()\nletter_space:{letter_space:?}\noptions.letter_spacing:{letter_spacing:?}"),
|
|
variables can be used directly in the `format!` string:
src/args.rs#L216
warning: variables can be used directly in the `format!` string
--> src/args.rs:216:21
|
216 | let flag_name = format!("-{}", flag);
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
216 - let flag_name = format!("-{}", flag);
216 + let flag_name = format!("-{flag}");
|
|
variables can be used directly in the `format!` string:
src/args.rs#L181
warning: variables can be used directly in the `format!` string
--> src/args.rs:181:14
|
181 | return Err(format!(
| ____________________^
182 | | "Please provide text to convert with: {start}cfonts \"Text\"{end}\nRun {start}cfonts --help{end} for more infos",
183 | | start = start,
184 | | end = end
185 | | ));
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
|
lint-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint-rust (ubuntu-latest)
Unexpected input(s) 'args', valid inputs are ['toolchain', 'target', 'default', 'override', 'profile', 'components']
|
test-nodejs (macOS-latest, 20)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (ubuntu-latest, 20)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (macOS-latest, 22)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (macOS-latest, 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (ubuntu-latest, 16)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (ubuntu-latest, 12)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (ubuntu-latest, 22)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (ubuntu-latest, 14)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (ubuntu-latest, 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (macOS-latest, 16)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (windows-latest, 12)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (windows-latest, 20)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (windows-latest, 22)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (windows-latest, 14)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (windows-latest, 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (windows-latest, 16)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
coverage-nodejs (16, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-rust (windows-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
coverage-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
coverage-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
coverage-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
coverage-rust (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
coverage-finish (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-nodejs (macOS-latest, 20)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-nodejs (macOS-latest, 20)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-nodejs (macOS-latest, 22)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-nodejs (macOS-latest, 22)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-nodejs (macOS-latest, 18)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-nodejs (macOS-latest, 18)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-nodejs (macOS-latest, 16)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-nodejs (macOS-latest, 16)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-rust (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|
test-rust (macos-latest)
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
|