Skip to content

Update README.md

Update README.md #277

GitHub Actions / clippy succeeded May 31, 2024 in 0s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956e 2024-04-29)

Annotations

Check warning on line 93 in src/client/terminal_io/default_interface.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `vec!`

warning: useless use of `vec!`
  --> src/client/terminal_io/default_interface.rs:87:23
   |
87 |       let keybindings = vec![
   |  _______________________^
88 | |         "[Q]uit",
89 | |         "[D]etach",
90 | |         "[S]kip",
91 | |         if is_break { "[P]ostpone" } else { "" },
92 | |         "Space: Play/Pause",
93 | |     ];
   | |_____^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
   = note: `#[warn(clippy::useless_vec)]` on by default
help: you can use an array directly
   |
87 ~     let keybindings = ["[Q]uit",
88 +         "[D]etach",
89 +         "[S]kip",
90 +         if is_break { "[P]ostpone" } else { "" },
91 ~         "Space: Play/Pause"];
   |