🌱 Bump actions/upload-artifact from 3.1.3 to 4.1.0 (#81) #81
Annotations
28 warnings
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashMap`:
src/diff.rs#L114
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashMap`
--> src/diff.rs:114:18
|
114 | self.into_iter().collect()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeMap`:
src/diff.rs#L90
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeMap`
--> src/diff.rs:90:18
|
90 | self.into_iter().collect()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
|
useless use of `format!`:
src/base.rs#L405
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
|
useless use of `format!`:
src/base.rs#L387
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();
|
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeSet`:
src/assertions/set.rs#L150
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeSet`
--> src/assertions/set.rs:150:14
|
150 | self.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
|
the following explicit lifetimes could be elided: 'a:
src/assertions/set.rs#L149
warning: the following explicit lifetimes could be elided: 'a
--> src/assertions/set.rs:149:13
|
149 | fn iter<'a>(&'a self) -> Self::It<'a> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
149 - fn iter<'a>(&'a self) -> Self::It<'a> {
149 + fn iter(&self) -> Self::It<'_> {
|
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashSet`:
src/assertions/set.rs#L142
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashSet`
--> src/assertions/set.rs:142:14
|
142 | self.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
|
the following explicit lifetimes could be elided: 'a:
src/assertions/set.rs#L141
warning: the following explicit lifetimes could be elided: 'a
--> src/assertions/set.rs:141:13
|
141 | fn iter<'a>(&'a self) -> Self::It<'a> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
141 - fn iter<'a>(&'a self) -> Self::It<'a> {
141 + fn iter(&self) -> Self::It<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/assertions/set.rs#L131
warning: the following explicit lifetimes could be elided: 'a
--> src/assertions/set.rs:131:13
|
131 | fn iter<'a>(&'a self) -> Self::It<'a>;
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
131 - fn iter<'a>(&'a self) -> Self::It<'a>;
131 + fn iter(&self) -> Self::It<'_>;
|
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
src/assertions/map.rs#L454
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> src/assertions/map.rs:454:18
|
454 | .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
|
useless use of `format!`:
src/assertions/map.rs#L440
warning: useless use of `format!`
--> src/assertions/map.rs:440:17
|
440 | 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
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
src/assertions/map.rs#L420
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> src/assertions/map.rs:420:18
|
420 | .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
|
unneeded `return` statement:
src/assertions/map.rs#L301
warning: unneeded `return` statement
--> src/assertions/map.rs:301:9
|
301 | 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`
|
301 - return self.new_result().do_ok();
301 + self.new_result().do_ok()
|
|
field `key_order_comparison` is never read:
src/diff.rs#L34
warning: field `key_order_comparison` is never read
--> src/diff.rs:34:20
|
29 | pub(crate) struct MapComparison<K: Eq + Hash + Debug, V: PartialEq + Debug> {
| ------------- field in this struct
...
34 | pub(crate) key_order_comparison: Option<SequenceComparison<K>>,
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashMap`:
src/diff.rs#L114
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashMap`
--> src/diff.rs:114:18
|
114 | self.into_iter().collect()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeMap`:
src/diff.rs#L90
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeMap`
--> src/diff.rs:90:18
|
90 | self.into_iter().collect()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
|
useless use of `format!`:
src/base.rs#L405
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
|
useless use of `format!`:
src/base.rs#L387
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();
|
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeSet`:
src/assertions/set.rs#L150
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `BTreeSet`
--> src/assertions/set.rs:150:14
|
150 | self.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
|
the following explicit lifetimes could be elided: 'a:
src/assertions/set.rs#L149
warning: the following explicit lifetimes could be elided: 'a
--> src/assertions/set.rs:149:13
|
149 | fn iter<'a>(&'a self) -> Self::It<'a> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
149 - fn iter<'a>(&'a self) -> Self::It<'a> {
149 + fn iter(&self) -> Self::It<'_> {
|
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashSet`:
src/assertions/set.rs#L142
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `HashSet`
--> src/assertions/set.rs:142:14
|
142 | self.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
|
the following explicit lifetimes could be elided: 'a:
src/assertions/set.rs#L141
warning: the following explicit lifetimes could be elided: 'a
--> src/assertions/set.rs:141:13
|
141 | fn iter<'a>(&'a self) -> Self::It<'a> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
141 - fn iter<'a>(&'a self) -> Self::It<'a> {
141 + fn iter(&self) -> Self::It<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/assertions/set.rs#L131
warning: the following explicit lifetimes could be elided: 'a
--> src/assertions/set.rs:131:13
|
131 | fn iter<'a>(&'a self) -> Self::It<'a>;
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
131 - fn iter<'a>(&'a self) -> Self::It<'a>;
131 + fn iter(&self) -> Self::It<'_>;
|
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
src/assertions/map.rs#L454
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> src/assertions/map.rs:454:18
|
454 | .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
|
useless use of `format!`:
src/assertions/map.rs#L440
warning: useless use of `format!`
--> src/assertions/map.rs:440:17
|
440 | 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
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
src/assertions/map.rs#L420
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> src/assertions/map.rs:420:18
|
420 | .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
|
unneeded `return` statement:
src/assertions/map.rs#L301
warning: unneeded `return` statement
--> src/assertions/map.rs:301:9
|
301 | 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`
|
301 - return self.new_result().do_ok();
301 + self.new_result().do_ok()
|
|
field `key_order_comparison` is never read:
src/diff.rs#L34
warning: field `key_order_comparison` is never read
--> src/diff.rs:34:20
|
29 | pub(crate) struct MapComparison<K: Eq + Hash + Debug, V: PartialEq + Debug> {
| ------------- field in this struct
...
34 | pub(crate) key_order_comparison: Option<SequenceComparison<K>>,
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
SARIF file
Expired
|
16.6 KB |
|