Update aws-sigv4 to >= 0.57
(#201)
#237
Annotations
56 warnings
the borrowed expression implements the required traits:
yaml_test_runner/src/github.rs#L69
warning: the borrowed expression implements the required traits
--> yaml_test_runner/src/github.rs:69:31
|
69 | let response = client.get(&url).send()?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
yaml_test_runner/src/generator.rs#L511
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_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
useless use of `format!`:
yaml_test_runner/src/generator.rs#L207
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
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9250
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9250:37
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9230
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9230:20
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9216
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9216:17
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9190
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9190:17
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9178
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9178:33
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9172
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9172:31
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9162
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9162:25
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9134
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9134:23
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9116
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9116:28
|
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> {
|
|
multiple fields are never read:
opensearch/src/models/mod.rs#L16
warning: multiple fields are never read
--> opensearch/src/models/mod.rs:16:5
|
15 | pub struct OpenSearchVersionInfo {
| --------------------- fields in this struct
16 | distribution: String,
| ^^^^^^^^^^^^
17 | number: String,
| ^^^^^^
18 | build_type: String,
| ^^^^^^^^^^
19 | build_hash: String,
| ^^^^^^^^^^
20 | build_date: String,
| ^^^^^^^^^^
21 | build_snapshot: bool,
| ^^^^^^^^^^^^^^
22 | lucene_version: String,
| ^^^^^^^^^^^^^^
23 | minimum_wire_compatibility_version: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | minimum_index_compatibility_version: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `OpenSearchVersionInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `name`, `cluster_name`, `cluster_uuid`, `version`, and `tag_line` are never read:
opensearch/src/models/mod.rs#L6
warning: fields `name`, `cluster_name`, `cluster_uuid`, `version`, and `tag_line` are never read
--> opensearch/src/models/mod.rs:6:5
|
5 | pub struct InfoResponse {
| ------------ fields in this struct
6 | name: String,
| ^^^^
7 | cluster_name: String,
| ^^^^^^^^^^^^
8 | cluster_uuid: String,
| ^^^^^^^^^^^^
9 | version: OpenSearchVersionInfo,
| ^^^^^^^
10 | #[serde(rename = "tagline")]
11 | tag_line: String,
| ^^^^^^^^
|
= note: `InfoResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
unneeded sub `cfg` when there is only one condition:
opensearch/src/auth.rs#L110
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
|
unneeded sub `cfg` when there is only one condition:
opensearch/src/auth.rs#L93
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
|
the borrowed expression implements the required traits:
api_generator/src/rest_spec/mod.rs#L44
warning: the borrowed expression implements the required traits
--> api_generator/src/rest_spec/mod.rs:44:31
|
44 | let response = client.get(&url).send()?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
the borrowed expression implements the required traits:
yaml_test_runner/src/github.rs#L69
warning: the borrowed expression implements the required traits
--> yaml_test_runner/src/github.rs:69:31
|
69 | let response = client.get(&url).send()?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
yaml_test_runner/src/generator.rs#L511
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_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
useless use of `format!`:
yaml_test_runner/src/generator.rs#L207
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
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9250
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9250:37
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9230
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9230:20
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9216
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9216:17
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9190
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9190:17
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9178
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9178:33
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9172
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9172:31
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9162
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9162:25
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9134
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9134:23
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9116
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9116:28
|
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> {
|
|
multiple fields are never read:
opensearch/src/models/mod.rs#L16
warning: multiple fields are never read
--> opensearch/src/models/mod.rs:16:5
|
15 | pub struct OpenSearchVersionInfo {
| --------------------- fields in this struct
16 | distribution: String,
| ^^^^^^^^^^^^
17 | number: String,
| ^^^^^^
18 | build_type: String,
| ^^^^^^^^^^
19 | build_hash: String,
| ^^^^^^^^^^
20 | build_date: String,
| ^^^^^^^^^^
21 | build_snapshot: bool,
| ^^^^^^^^^^^^^^
22 | lucene_version: String,
| ^^^^^^^^^^^^^^
23 | minimum_wire_compatibility_version: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | minimum_index_compatibility_version: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `OpenSearchVersionInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `name`, `cluster_name`, `cluster_uuid`, `version`, and `tag_line` are never read:
opensearch/src/models/mod.rs#L6
warning: fields `name`, `cluster_name`, `cluster_uuid`, `version`, and `tag_line` are never read
--> opensearch/src/models/mod.rs:6:5
|
5 | pub struct InfoResponse {
| ------------ fields in this struct
6 | name: String,
| ^^^^
7 | cluster_name: String,
| ^^^^^^^^^^^^
8 | cluster_uuid: String,
| ^^^^^^^^^^^^
9 | version: OpenSearchVersionInfo,
| ^^^^^^^
10 | #[serde(rename = "tagline")]
11 | tag_line: String,
| ^^^^^^^^
|
= note: `InfoResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
the borrowed expression implements the required traits:
api_generator/src/rest_spec/mod.rs#L44
warning: the borrowed expression implements the required traits
--> api_generator/src/rest_spec/mod.rs:44:31
|
44 | let response = client.get(&url).send()?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
unneeded sub `cfg` when there is only one condition:
opensearch/src/auth.rs#L110
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
|
unneeded sub `cfg` when there is only one condition:
opensearch/src/auth.rs#L93
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
|
the borrowed expression implements the required traits:
yaml_test_runner/src/github.rs#L69
warning: the borrowed expression implements the required traits
--> yaml_test_runner/src/github.rs:69:31
|
69 | let response = client.get(&url).send()?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
yaml_test_runner/src/generator.rs#L511
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_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
useless use of `format!`:
yaml_test_runner/src/generator.rs#L207
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
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9250
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9250:37
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9230
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9230:20
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9216
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9216:17
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9190
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9190:17
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9178
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9178:33
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9172
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9172:31
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9162
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9162:25
|
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> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9134
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9134:23
|
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, ()> {
|
|
the following explicit lifetimes could be elided: 'a:
opensearch/src/root/mod.rs#L9116
warning: the following explicit lifetimes could be elided: 'a
--> opensearch/src/root/mod.rs:9116:28
|
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> {
|
|
multiple fields are never read:
opensearch/src/models/mod.rs#L16
warning: multiple fields are never read
--> opensearch/src/models/mod.rs:16:5
|
15 | pub struct OpenSearchVersionInfo {
| --------------------- fields in this struct
16 | distribution: String,
| ^^^^^^^^^^^^
17 | number: String,
| ^^^^^^
18 | build_type: String,
| ^^^^^^^^^^
19 | build_hash: String,
| ^^^^^^^^^^
20 | build_date: String,
| ^^^^^^^^^^
21 | build_snapshot: bool,
| ^^^^^^^^^^^^^^
22 | lucene_version: String,
| ^^^^^^^^^^^^^^
23 | minimum_wire_compatibility_version: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | minimum_index_compatibility_version: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `OpenSearchVersionInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `name`, `cluster_name`, `cluster_uuid`, `version`, and `tag_line` are never read:
opensearch/src/models/mod.rs#L6
warning: fields `name`, `cluster_name`, `cluster_uuid`, `version`, and `tag_line` are never read
--> opensearch/src/models/mod.rs:6:5
|
5 | pub struct InfoResponse {
| ------------ fields in this struct
6 | name: String,
| ^^^^
7 | cluster_name: String,
| ^^^^^^^^^^^^
8 | cluster_uuid: String,
| ^^^^^^^^^^^^
9 | version: OpenSearchVersionInfo,
| ^^^^^^^
10 | #[serde(rename = "tagline")]
11 | tag_line: String,
| ^^^^^^^^
|
= note: `InfoResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
the borrowed expression implements the required traits:
api_generator/src/rest_spec/mod.rs#L44
warning: the borrowed expression implements the required traits
--> api_generator/src/rest_spec/mod.rs:44:31
|
44 | let response = client.get(&url).send()?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
unneeded sub `cfg` when there is only one condition:
opensearch/src/auth.rs#L110
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
|
unneeded sub `cfg` when there is only one condition:
opensearch/src/auth.rs#L93
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
|