Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Bump github/codeql-action from 2.22.4 to 3.22.12 #76

Merged

:seedling: Bump github/codeql-action from 2.22.4 to 3.22.12

d8ba6e1
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

🌱 Bump github/codeql-action from 2.22.4 to 3.22.12 #76

:seedling: Bump github/codeql-action from 2.22.4 to 3.22.12
d8ba6e1
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Dec 22, 2023 in 1s

clippy

6 warnings

Details

Results

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

Versions

  • rustc 1.74.1 (a28077b28 2023-12-04)
  • cargo 1.74.1 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (a28077b 2023-12-04)

Annotations

Check warning on line 405 in src/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

warning: useless use of `format!`
   --> src/base.rs:405:47
    |
405 | ...                   .map(|el| format!("{}", el))
    |                                 ^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `el.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format

Check warning on line 410 in src/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

warning: useless use of `format!`
   --> src/base.rs:387:44
    |
387 |                       let formatted_values = format!(
    |  ____________________________________________^
388 | |                         "{}",
389 | |                         if use_multiline_output {
390 | |                             let elements = values
...   |
409 | |                         }
410 | |                     );
    | |_____________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
help: consider using `.to_string()`
    |
387 ~                     let formatted_values = (if use_multiline_output {
388 +                             let elements = values
389 +                                 .iter()
390 +                                 .map(|el| format!("  - {}", el))
391 +                                 .collect::<Vec<_>>()
392 +                                 .join("\n");
393 +                             if values_size > 0 {
394 +                                 format!("[\n{}\n]", elements)
395 +                             } else {
396 +                                 "[]".to_string()
397 +                             }
398 +                         } else {
399 +                             format!(
400 +                                 "[ {} ]",
401 +                                 values
402 +                                     .iter()
403 +                                     .map(|el| format!("{}", el))
404 +                                     .collect::<Vec<_>>()
405 +                                     .join(", ")
406 +                             )
407 ~                         }).to_string();
    |

Check warning on line 434 in src/assertions/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`

warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
   --> src/assertions/map.rs:434:18
    |
434 |                 .into_iter()
    |                  ^^^^^^^^^ help: call directly: `iter`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref

Check warning on line 420 in src/assertions/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `format!`

warning: useless use of `format!`
   --> src/assertions/map.rs:420:17
    |
420 |                 format!("expected to not contain additional entries"),
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"expected to not contain additional entries".to_string()`
    |
    = 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

Check warning on line 400 in src/assertions/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`

warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
   --> src/assertions/map.rs:400:18
    |
400 |                 .into_iter()
    |                  ^^^^^^^^^ help: call directly: `iter`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
    = note: `#[warn(clippy::into_iter_on_ref)]` on by default

Check warning on line 285 in src/assertions/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded `return` statement

warning: unneeded `return` statement
   --> src/assertions/map.rs:285:9
    |
285 |         return self.new_result().do_ok();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
    = note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
    |
285 -         return self.new_result().do_ok();
285 +         self.new_result().do_ok()
    |