Update generated code #298
Annotations
53 warnings
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/xpack.rs#L322
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/xpack.rs:322:18
|
322 | pub fn xpack(&self) -> Xpack {
| ^^^^^ ----- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
322 | pub fn xpack(&self) -> Xpack<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/watcher.rs#L1991
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/watcher.rs:1991:20
|
1991 | pub fn watcher(&self) -> Watcher {
| ^^^^^ ------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1991 | pub fn watcher(&self) -> Watcher<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/transform.rs#L2025
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/transform.rs:2025:22
|
2025 | pub fn transform(&self) -> Transform {
| ^^^^^ --------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
2025 | pub fn transform(&self) -> Transform<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/text_structure.rs#L1005
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/text_structure.rs:1005:27
|
1005 | pub fn text_structure(&self) -> TextStructure {
| ^^^^^ ------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1005 | pub fn text_structure(&self) -> TextStructure<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/tasks.rs#L603
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/tasks.rs:603:18
|
603 | pub fn tasks(&self) -> Tasks {
| ^^^^^ ----- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
603 | pub fn tasks(&self) -> Tasks<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/synonyms.rs#L1036
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/synonyms.rs:1036:21
|
1036 | pub fn synonyms(&self) -> Synonyms {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1036 | pub fn synonyms(&self) -> Synonyms<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/streams.rs#L492
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/streams.rs:492:20
|
492 | pub fn streams(&self) -> Streams {
| ^^^^^ ------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
492 | pub fn streams(&self) -> Streams<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/ssl.rs#L178
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/ssl.rs:178:16
|
178 | pub fn ssl(&self) -> Ssl {
| ^^^^^ --- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
178 | pub fn ssl(&self) -> Ssl<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/sql.rs#L900
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/sql.rs:900:16
|
900 | pub fn sql(&self) -> Sql {
| ^^^^^ --- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
900 | pub fn sql(&self) -> Sql<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/snapshot.rs#L2471
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/snapshot.rs:2471:21
|
2471 | pub fn snapshot(&self) -> Snapshot {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
2471 | pub fn snapshot(&self) -> Snapshot<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/slm.rs#L1440
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/slm.rs:1440:16
|
1440 | pub fn slm(&self) -> Slm {
| ^^^^^ --- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1440 | pub fn slm(&self) -> Slm<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/simulate.rs#L236
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/simulate.rs:236:21
|
236 | pub fn simulate(&self) -> Simulate {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
236 | pub fn simulate(&self) -> Simulate<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/shutdown.rs#L508
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/shutdown.rs:508:21
|
508 | pub fn shutdown(&self) -> Shutdown {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
508 | pub fn shutdown(&self) -> Shutdown<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/security.rs#L9356
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/security.rs:9356:21
|
9356 | pub fn security(&self) -> Security {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
9356 | pub fn security(&self) -> Security<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/searchable_snapshots.rs#L721
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/searchable_snapshots.rs:721:33
|
721 | pub fn searchable_snapshots(&self) -> SearchableSnapshots {
| ^^^^^ ------------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
721 | pub fn searchable_snapshots(&self) -> SearchableSnapshots<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/search_application.rs#L1583
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/search_application.rs:1583:31
|
1583 | pub fn search_application(&self) -> SearchApplication {
| ^^^^^ ----------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1583 | pub fn search_application(&self) -> SearchApplication<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/rollup.rs#L1259
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/rollup.rs:1259:19
|
1259 | pub fn rollup(&self) -> Rollup {
| ^^^^^ ------ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1259 | pub fn rollup(&self) -> Rollup<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/query_rules.rs#L1169
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/query_rules.rs:1169:24
|
1169 | pub fn query_rules(&self) -> QueryRules {
| ^^^^^ ---------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1169 | pub fn query_rules(&self) -> QueryRules<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/profiling.rs#L618
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/profiling.rs:618:22
|
618 | pub fn profiling(&self) -> Profiling {
| ^^^^^ --------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
618 | pub fn profiling(&self) -> Profiling<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/nodes.rs#L1324
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/nodes.rs:1324:18
|
1324 | pub fn nodes(&self) -> Nodes {
| ^^^^^ ----- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1324 | pub fn nodes(&self) -> Nodes<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/monitoring.rs#L242
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/monitoring.rs:242:23
|
242 | pub fn monitoring(&self) -> Monitoring {
| ^^^^^ ---------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
242 | pub fn monitoring(&self) -> Monitoring<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/ml.rs#L11971
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/ml.rs:11971:15
|
11971 | pub fn ml(&self) -> Ml {
| ^^^^^ -- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
11971 | pub fn ml(&self) -> Ml<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/migration.rs#L447
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/migration.rs:447:22
|
447 | pub fn migration(&self) -> Migration {
| ^^^^^ --------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
447 | pub fn migration(&self) -> Migration<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/logstash.rs#L464
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/logstash.rs:464:21
|
464 | pub fn logstash(&self) -> Logstash {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
464 | pub fn logstash(&self) -> Logstash<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/license.rs#L1075
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/license.rs:1075:20
|
1075 | pub fn license(&self) -> License {
| ^^^^^ ------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1075 | pub fn license(&self) -> License<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/ingest.rs#L1819
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/ingest.rs:1819:19
|
1819 | pub fn ingest(&self) -> Ingest {
| ^^^^^ ------ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1819 | pub fn ingest(&self) -> Ingest<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/inference.rs#L4732
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/inference.rs:4732:22
|
4732 | pub fn inference(&self) -> Inference {
| ^^^^^ --------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
4732 | pub fn inference(&self) -> Inference<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/indices.rs#L12258
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/indices.rs:12258:20
|
12258 | pub fn indices(&self) -> Indices {
| ^^^^^ ------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
12258 | pub fn indices(&self) -> Indices<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/ilm.rs#L1705
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/ilm.rs:1705:16
|
1705 | pub fn ilm(&self) -> Ilm {
| ^^^^^ --- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1705 | pub fn ilm(&self) -> Ilm<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/graph.rs#L235
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/graph.rs:235:18
|
235 | pub fn graph(&self) -> Graph {
| ^^^^^ ----- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
235 | pub fn graph(&self) -> Graph<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/fleet.rs#L979
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/fleet.rs:979:18
|
979 | pub fn fleet(&self) -> Fleet {
| ^^^^^ ----- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
979 | pub fn fleet(&self) -> Fleet<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/features.rs#L343
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/features.rs:343:21
|
343 | pub fn features(&self) -> Features {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
343 | pub fn features(&self) -> Features<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/esql.rs#L855
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/esql.rs:855:17
|
855 | pub fn esql(&self) -> Esql {
| ^^^^^ ---- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
855 | pub fn esql(&self) -> Esql<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/eql.rs#L690
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/eql.rs:690:16
|
690 | pub fn eql(&self) -> Eql {
| ^^^^^ --- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
690 | pub fn eql(&self) -> Eql<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/enrich.rs#L787
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/enrich.rs:787:19
|
787 | pub fn enrich(&self) -> Enrich {
| ^^^^^ ------ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
787 | pub fn enrich(&self) -> Enrich<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/dangling_indices.rs#L521
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/dangling_indices.rs:521:29
|
521 | pub fn dangling_indices(&self) -> DanglingIndices {
| ^^^^^ --------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
521 | pub fn dangling_indices(&self) -> DanglingIndices<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/connector.rs#L5272
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/connector.rs:5272:22
|
5272 | pub fn connector(&self) -> Connector {
| ^^^^^ --------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
5272 | pub fn connector(&self) -> Connector<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/cluster.rs#L2682
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/cluster.rs:2682:20
|
2682 | pub fn cluster(&self) -> Cluster {
| ^^^^^ ------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
2682 | pub fn cluster(&self) -> Cluster<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/ccr.rs#L2019
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/ccr.rs:2019:16
|
2019 | pub fn ccr(&self) -> Ccr {
| ^^^^^ --- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
2019 | pub fn ccr(&self) -> Ccr<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/cat.rs#L5297
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/cat.rs:5297:16
|
5297 | pub fn cat(&self) -> Cat {
| ^^^^^ --- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
5297 | pub fn cat(&self) -> Cat<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/autoscaling.rs#L637
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/autoscaling.rs:637:24
|
637 | pub fn autoscaling(&self) -> Autoscaling {
| ^^^^^ ----------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
637 | pub fn autoscaling(&self) -> Autoscaling<'_> {
| ++++
|
hiding a lifetime that's elided elsewhere is confusing:
elasticsearch/src/async_search.rs#L1059
warning: hiding a lifetime that's elided elsewhere is confusing
--> elasticsearch/src/async_search.rs:1059:25
|
1059 | pub fn async_search(&self) -> AsyncSearch {
| ^^^^^ ----------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
1059 | pub fn async_search(&self) -> AsyncSearch<'_> {
| ++++
|
doc list item overindented:
elasticsearch/src/http/transport.rs#L481
warning: doc list item overindented
--> elasticsearch/src/http/transport.rs:481:9
|
481 | /// identifies the deployment instance.
| ^^^^^^^^^^^^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
|
the following explicit lifetimes could be elided: 'a:
elasticsearch/src/http/request.rs#L175
warning: the following explicit lifetimes could be elided: 'a
--> elasticsearch/src/http/request.rs:175:6
|
175 | impl<'a> Body for &'a str {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
175 - impl<'a> Body for &'a str {
175 + impl Body for &str {
|
|
the following explicit lifetimes could be elided: 'a:
elasticsearch/src/http/request.rs#L161
warning: the following explicit lifetimes could be elided: 'a
--> elasticsearch/src/http/request.rs:161:6
|
161 | impl<'a> Body for &'a [u8] {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
161 - impl<'a> Body for &'a [u8] {
161 + impl Body for &[u8] {
|
|
the following explicit lifetimes could be elided: 'a:
elasticsearch/src/http/request.rs#L53
warning: the following explicit lifetimes could be elided: 'a
--> elasticsearch/src/http/request.rs:53:6
|
53 | impl<'a, B: ?Sized> Body for &'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
|
53 - impl<'a, B: ?Sized> Body for &'a B
53 + impl<B: ?Sized> Body for &B
|
|
doc list item overindented:
elasticsearch/src/lib.rs#L57
warning: doc list item overindented
--> elasticsearch/src/lib.rs:57:5
|
57 | //! caution because it is possible that breaking changes are made to these APIs in a minor version.
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
= note: `#[warn(clippy::doc_overindented_list_items)]` on by default
|
hiding a lifetime that's elided elsewhere is confusing:
api_generator/src/generator/code_gen/url/url_builder.rs#L66
warning: hiding a lifetime that's elided elsewhere is confusing
--> api_generator/src/generator/code_gen/url/url_builder.rs:66:18
|
66 | pub fn split(&self) -> Vec<PathPart> {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
66 | pub fn split(&self) -> Vec<PathPart<'_>> {
| ++++
|
iterating on a map's keys:
api_generator/src/generator/code_gen/request/request_builder.rs#L157
warning: iterating on a map's keys
--> api_generator/src/generator/code_gen/request/request_builder.rs:157:30
|
157 | let query_ctor = endpoint_params.iter().map(|(param_name, _)| {
| ______________________________^
158 | | let field_name = ident(valid_name(param_name).to_lowercase());
159 | | quote! {
160 | | #field_name: self.#field_name
161 | | }
162 | | });
| |______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
= note: `#[warn(clippy::iter_kv_map)]` on by default
help: try
|
157 ~ let query_ctor = endpoint_params.keys().map(|param_name| {
158 + let field_name = ident(valid_name(param_name).to_lowercase());
159 + quote! {
160 + #field_name: self.#field_name
161 + }
162 ~ });
|
|
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/
|