Skip to content

refactor(cli): cleanup info command #554

refactor(cli): cleanup info command

refactor(cli): cleanup info command #554

GitHub Actions / cli failed Aug 30, 2023 in 1s

cli

4 errors

Details

Results

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

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check failure on line 245 in src/info/packages_rust.rs

See this annotation in the file changed.

@github-actions github-actions / cli

single-character string constant used as pattern

error: single-character string constant used as pattern
   --> src/info/packages_rust.rs:245:32
    |
245 |             version.split_once("\n").unwrap_or_default().0,
    |                                ^^^^ help: try using a `char` instead: `'\n'`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern

Check failure on line 239 in src/info/packages_rust.rs

See this annotation in the file changed.

@github-actions github-actions / cli

single-character string constant used as pattern

error: single-character string constant used as pattern
   --> src/info/packages_rust.rs:239:51
    |
239 |           let (package, version) = out.split_once(" ").unwrap_or_default();
    |                                                   ^^^ help: try using a `char` instead: `' '`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
    = note: `-D clippy::single-char-pattern` implied by `-D warnings`

Check failure on line 245 in src/info/packages_rust.rs

See this annotation in the file changed.

@github-actions github-actions / cli

single-character string constant used as pattern

error: single-character string constant used as pattern
   --> src/info/packages_rust.rs:245:32
    |
245 |             version.split_once("\n").unwrap_or_default().0,
    |                                ^^^^ help: try using a `char` instead: `'\n'`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern

Check failure on line 239 in src/info/packages_rust.rs

See this annotation in the file changed.

@github-actions github-actions / cli

single-character string constant used as pattern

error: single-character string constant used as pattern
   --> src/info/packages_rust.rs:239:51
    |
239 |           let (package, version) = out.split_once(" ").unwrap_or_default();
    |                                                   ^^^ help: try using a `char` instead: `' '`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
    = note: `-D clippy::single-char-pattern` implied by `-D warnings`