Skip to content

Fix/improve output in the console #324

Fix/improve output in the console

Fix/improve output in the console #324

GitHub Actions / clippy succeeded Feb 10, 2024 in 0s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 262 in crates/console-host/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

warning: useless use of `format!`
   --> crates/console-host/src/main.rs:262:32
    |
262 |                         .print(format!("Received disconnect event; Session ending."))
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Received disconnect event; Session ending.".to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format

Check warning on line 252 in crates/console-host/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

warning: useless use of `format!`
   --> crates/console-host/src/main.rs:247:32
    |
247 |                           .print(format!(
    |  ________________________________^
248 | |                             "{}",
249 | |                             match msg.event() {
250 | |                                 moor_values::model::Event::TextNotify(s) => s,
251 | |                             }
252 | |                         ))
    | |_________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
    = note: `#[warn(clippy::useless_format)]` on by default
help: consider using `.to_string()`
    |
247 ~                         .print((match msg.event() {
248 +                                 moor_values::model::Event::TextNotify(s) => s,
249 ~                             }).to_string())
    |