Update itertools requirement from 0.10.0 to 0.11.0 #174
clippy
15 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 15 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.0-nightly (36fb58e43 2023-06-26)
- cargo 1.72.0-nightly (03bc66b55 2023-06-23)
- clippy 0.1.72 (36fb58e 2023-06-26)
Annotations
Check warning on line 511 in yaml_test_runner/src/generator.rs
github-actions / clippy
the borrowed expression implements the required traits
warning: the borrowed expression implements the required traits
--> yaml_test_runner/src/generator.rs:511:33
|
511 | let mut file = File::create(&path)?;
| ^^^^^ help: change this to: `path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Check warning on line 207 in yaml_test_runner/src/generator.rs
github-actions / clippy
useless use of `format!`
warning: useless use of `format!`
--> yaml_test_runner/src/generator.rs:207:18
|
207 | Some(format!("it's included in skip.yml"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"it's included in skip.yml".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 9250 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9250:5
|
9250 | pub fn scripts_painless_execute<'a, 'b>(&'a self) -> ScriptsPainlessExecute<'a, 'b, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9250 - pub fn scripts_painless_execute<'a, 'b>(&'a self) -> ScriptsPainlessExecute<'a, 'b, ()> {
9250 + pub fn scripts_painless_execute<'b>(&self) -> ScriptsPainlessExecute<'_, 'b, ()> {
|
Check warning on line 9230 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9230:5
|
9230 | pub fn reindex<'a, 'b>(&'a self) -> Reindex<'a, 'b, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9230 - pub fn reindex<'a, 'b>(&'a self) -> Reindex<'a, 'b, ()> {
9230 + pub fn reindex<'b>(&self) -> Reindex<'_, 'b, ()> {
|
Check warning on line 9216 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9216:5
|
9216 | pub fn ping<'a, 'b>(&'a self) -> Ping<'a, 'b> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9216 - pub fn ping<'a, 'b>(&'a self) -> Ping<'a, 'b> {
9216 + pub fn ping<'b>(&self) -> Ping<'_, 'b> {
|
Check warning on line 9190 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9190:5
|
9190 | pub fn info<'a, 'b>(&'a self) -> Info<'a, 'b> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9190 - pub fn info<'a, 'b>(&'a self) -> Info<'a, 'b> {
9190 + pub fn info<'b>(&self) -> Info<'_, 'b> {
|
Check warning on line 9178 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9178:5
|
9178 | pub fn get_script_languages<'a, 'b>(&'a self) -> GetScriptLanguages<'a, 'b> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9178 - pub fn get_script_languages<'a, 'b>(&'a self) -> GetScriptLanguages<'a, 'b> {
9178 + pub fn get_script_languages<'b>(&self) -> GetScriptLanguages<'_, 'b> {
|
Check warning on line 9172 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9172:5
|
9172 | pub fn get_script_context<'a, 'b>(&'a self) -> GetScriptContext<'a, 'b> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9172 - pub fn get_script_context<'a, 'b>(&'a self) -> GetScriptContext<'a, 'b> {
9172 + pub fn get_script_context<'b>(&self) -> GetScriptContext<'_, 'b> {
|
Check warning on line 9162 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9162:5
|
9162 | pub fn get_all_pits<'a, 'b>(&'a self) -> GetAllPits<'a, 'b> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9162 - pub fn get_all_pits<'a, 'b>(&'a self) -> GetAllPits<'a, 'b> {
9162 + pub fn get_all_pits<'b>(&self) -> GetAllPits<'_, 'b> {
|
Check warning on line 9134 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9134:5
|
9134 | pub fn delete_pit<'a, 'b>(&'a self) -> DeletePit<'a, 'b, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
9134 - pub fn delete_pit<'a, 'b>(&'a self) -> DeletePit<'a, 'b, ()> {
9134 + pub fn delete_pit<'b>(&self) -> DeletePit<'_, 'b, ()> {
|
Check warning on line 9116 in opensearch/src/root/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9116:5
|
9116 | pub fn delete_all_pits<'a, 'b>(&'a self) -> DeleteAllPits<'a, 'b> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
9116 - pub fn delete_all_pits<'a, 'b>(&'a self) -> DeleteAllPits<'a, 'b> {
9116 + pub fn delete_all_pits<'b>(&self) -> DeleteAllPits<'_, 'b> {
|
Check warning on line 46 in api_generator/src/bin/run.rs
github-actions / clippy
redundant clone
warning: redundant clone
--> api_generator/src/bin/run.rs:46:36
|
46 | let mut branch = default_branch.clone();
| ^^^^^^^^ help: remove this
|
note: cloned value is neither consumed nor mutated
--> api_generator/src/bin/run.rs:46:22
|
46 | let mut branch = default_branch.clone();
| ^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default
Check warning on line 110 in opensearch/src/auth.rs
github-actions / clippy
unneeded sub `cfg` when there is only one condition
warning: unneeded sub `cfg` when there is only one condition
--> opensearch/src/auth.rs:110:7
|
110 | #[cfg(any(feature = "aws-auth"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "aws-auth"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
Check warning on line 93 in opensearch/src/auth.rs
github-actions / clippy
unneeded sub `cfg` when there is only one condition
warning: unneeded sub `cfg` when there is only one condition
--> opensearch/src/auth.rs:93:7
|
93 | #[cfg(any(feature = "aws-auth"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "aws-auth"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
= note: `#[warn(clippy::non_minimal_cfg)]` on by default
Check warning on line 542 in api_generator/src/generator/code_gen/request/request_builder.rs
github-actions / clippy
redundant clone
warning: redundant clone
--> api_generator/src/generator/code_gen/request/request_builder.rs:542:34
|
542 | let b = builder_ident.clone();
| ^^^^^^^^ help: remove this
|
note: cloned value is neither consumed nor mutated
--> api_generator/src/generator/code_gen/request/request_builder.rs:542:21
|
542 | let b = builder_ident.clone();
| ^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: `#[warn(clippy::redundant_clone)]` on by default