Skip to content

Allow using an arbitrary value for the Authorization header #290

Allow using an arbitrary value for the Authorization header

Allow using an arbitrary value for the Authorization header #290

GitHub Actions / clippy succeeded Jun 30, 2025 in 1s

clippy

42 warnings

Details

Results

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

Versions

  • rustc 1.90.0-nightly (35f603652 2025-06-29)
  • cargo 1.90.0-nightly (930b4f62c 2025-06-28)
  • clippy 0.1.90 (35f6036521 2025-06-29)

Annotations

Check warning on line 322 in elasticsearch/src/xpack.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/xpack.rs:322:18
    |
322 |     pub fn xpack(&self) -> Xpack {
    |                  ^^^^^     ----- the lifetime gets resolved as `'_`
    |                  |
    |                  this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
322 |     pub fn xpack(&self) -> Xpack<'_> {
    |                                 ++++

Check warning on line 1991 in elasticsearch/src/watcher.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/watcher.rs:1991:20
     |
1991 |     pub fn watcher(&self) -> Watcher {
     |                    ^^^^^     ------- the lifetime gets resolved as `'_`
     |                    |
     |                    this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1991 |     pub fn watcher(&self) -> Watcher<'_> {
     |                                     ++++

Check warning on line 2025 in elasticsearch/src/transform.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/transform.rs:2025:22
     |
2025 |     pub fn transform(&self) -> Transform {
     |                      ^^^^^     --------- the lifetime gets resolved as `'_`
     |                      |
     |                      this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
2025 |     pub fn transform(&self) -> Transform<'_> {
     |                                         ++++

Check warning on line 1005 in elasticsearch/src/text_structure.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/text_structure.rs:1005:27
     |
1005 |     pub fn text_structure(&self) -> TextStructure {
     |                           ^^^^^     ------------- the lifetime gets resolved as `'_`
     |                           |
     |                           this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1005 |     pub fn text_structure(&self) -> TextStructure<'_> {
     |                                                  ++++

Check warning on line 603 in elasticsearch/src/tasks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/tasks.rs:603:18
    |
603 |     pub fn tasks(&self) -> Tasks {
    |                  ^^^^^     ----- the lifetime gets resolved as `'_`
    |                  |
    |                  this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
603 |     pub fn tasks(&self) -> Tasks<'_> {
    |                                 ++++

Check warning on line 1036 in elasticsearch/src/synonyms.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/synonyms.rs:1036:21
     |
1036 |     pub fn synonyms(&self) -> Synonyms {
     |                     ^^^^^     -------- the lifetime gets resolved as `'_`
     |                     |
     |                     this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1036 |     pub fn synonyms(&self) -> Synonyms<'_> {
     |                                       ++++

Check warning on line 178 in elasticsearch/src/ssl.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/ssl.rs:178:16
    |
178 |     pub fn ssl(&self) -> Ssl {
    |                ^^^^^     --- the lifetime gets resolved as `'_`
    |                |
    |                this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
178 |     pub fn ssl(&self) -> Ssl<'_> {
    |                             ++++

Check warning on line 900 in elasticsearch/src/sql.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/sql.rs:900:16
    |
900 |     pub fn sql(&self) -> Sql {
    |                ^^^^^     --- the lifetime gets resolved as `'_`
    |                |
    |                this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
900 |     pub fn sql(&self) -> Sql<'_> {
    |                             ++++

Check warning on line 2461 in elasticsearch/src/snapshot.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/snapshot.rs:2461:21
     |
2461 |     pub fn snapshot(&self) -> Snapshot {
     |                     ^^^^^     -------- the lifetime gets resolved as `'_`
     |                     |
     |                     this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
2461 |     pub fn snapshot(&self) -> Snapshot<'_> {
     |                                       ++++

Check warning on line 1440 in elasticsearch/src/slm.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/slm.rs:1440:16
     |
1440 |     pub fn slm(&self) -> Slm {
     |                ^^^^^     --- the lifetime gets resolved as `'_`
     |                |
     |                this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1440 |     pub fn slm(&self) -> Slm<'_> {
     |                             ++++

Check warning on line 236 in elasticsearch/src/simulate.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/simulate.rs:236:21
    |
236 |     pub fn simulate(&self) -> Simulate {
    |                     ^^^^^     -------- the lifetime gets resolved as `'_`
    |                     |
    |                     this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
236 |     pub fn simulate(&self) -> Simulate<'_> {
    |                                       ++++

Check warning on line 508 in elasticsearch/src/shutdown.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/shutdown.rs:508:21
    |
508 |     pub fn shutdown(&self) -> Shutdown {
    |                     ^^^^^     -------- the lifetime gets resolved as `'_`
    |                     |
    |                     this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
508 |     pub fn shutdown(&self) -> Shutdown<'_> {
    |                                       ++++

Check warning on line 9356 in elasticsearch/src/security.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/security.rs:9356:21
     |
9356 |     pub fn security(&self) -> Security {
     |                     ^^^^^     -------- the lifetime gets resolved as `'_`
     |                     |
     |                     this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
9356 |     pub fn security(&self) -> Security<'_> {
     |                                       ++++

Check warning on line 732 in elasticsearch/src/searchable_snapshots.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/searchable_snapshots.rs:732:33
    |
732 |     pub fn searchable_snapshots(&self) -> SearchableSnapshots {
    |                                 ^^^^^     ------------------- the lifetime gets resolved as `'_`
    |                                 |
    |                                 this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
732 |     pub fn searchable_snapshots(&self) -> SearchableSnapshots<'_> {
    |                                                              ++++

Check warning on line 969 in elasticsearch/src/search_application.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/search_application.rs:969:31
    |
969 |     pub fn search_application(&self) -> SearchApplication {
    |                               ^^^^^     ----------------- the lifetime gets resolved as `'_`
    |                               |
    |                               this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
969 |     pub fn search_application(&self) -> SearchApplication<'_> {
    |                                                          ++++

Check warning on line 1259 in elasticsearch/src/rollup.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/rollup.rs:1259:19
     |
1259 |     pub fn rollup(&self) -> Rollup {
     |                   ^^^^^     ------ the lifetime gets resolved as `'_`
     |                   |
     |                   this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1259 |     pub fn rollup(&self) -> Rollup<'_> {
     |                                   ++++

Check warning on line 1169 in elasticsearch/src/query_rules.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/query_rules.rs:1169:24
     |
1169 |     pub fn query_rules(&self) -> QueryRules {
     |                        ^^^^^     ---------- the lifetime gets resolved as `'_`
     |                        |
     |                        this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1169 |     pub fn query_rules(&self) -> QueryRules<'_> {
     |                                            ++++

Check warning on line 618 in elasticsearch/src/profiling.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/profiling.rs:618:22
    |
618 |     pub fn profiling(&self) -> Profiling {
    |                      ^^^^^     --------- the lifetime gets resolved as `'_`
    |                      |
    |                      this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
618 |     pub fn profiling(&self) -> Profiling<'_> {
    |                                         ++++

Check warning on line 1324 in elasticsearch/src/nodes.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/nodes.rs:1324:18
     |
1324 |     pub fn nodes(&self) -> Nodes {
     |                  ^^^^^     ----- the lifetime gets resolved as `'_`
     |                  |
     |                  this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1324 |     pub fn nodes(&self) -> Nodes<'_> {
     |                                 ++++

Check warning on line 242 in elasticsearch/src/monitoring.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/monitoring.rs:242:23
    |
242 |     pub fn monitoring(&self) -> Monitoring {
    |                       ^^^^^     ---------- the lifetime gets resolved as `'_`
    |                       |
    |                       this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
242 |     pub fn monitoring(&self) -> Monitoring<'_> {
    |                                           ++++

Check warning on line 11952 in elasticsearch/src/ml.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
     --> elasticsearch/src/ml.rs:11952:15
      |
11952 |     pub fn ml(&self) -> Ml {
      |               ^^^^^     -- the lifetime gets resolved as `'_`
      |               |
      |               this lifetime flows to the output
      |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
      |
11952 |     pub fn ml(&self) -> Ml<'_> {
      |                           ++++

Check warning on line 447 in elasticsearch/src/migration.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/migration.rs:447:22
    |
447 |     pub fn migration(&self) -> Migration {
    |                      ^^^^^     --------- the lifetime gets resolved as `'_`
    |                      |
    |                      this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
447 |     pub fn migration(&self) -> Migration<'_> {
    |                                         ++++

Check warning on line 464 in elasticsearch/src/logstash.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
   --> elasticsearch/src/logstash.rs:464:21
    |
464 |     pub fn logstash(&self) -> Logstash {
    |                     ^^^^^     -------- the lifetime gets resolved as `'_`
    |                     |
    |                     this lifetime flows to the output
    |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
464 |     pub fn logstash(&self) -> Logstash<'_> {
    |                                       ++++

Check warning on line 1075 in elasticsearch/src/license.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/license.rs:1075:20
     |
1075 |     pub fn license(&self) -> License {
     |                    ^^^^^     ------- the lifetime gets resolved as `'_`
     |                    |
     |                    this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1075 |     pub fn license(&self) -> License<'_> {
     |                                     ++++

Check warning on line 1819 in elasticsearch/src/ingest.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

lifetime flowing from input to output with different syntax can be confusing

warning: lifetime flowing from input to output with different syntax can be confusing
    --> elasticsearch/src/ingest.rs:1819:19
     |
1819 |     pub fn ingest(&self) -> Ingest {
     |                   ^^^^^     ------ the lifetime gets resolved as `'_`
     |                   |
     |                   this lifetime flows to the output
     |
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
     |
1819 |     pub fn ingest(&self) -> Ingest<'_> {
     |                                   ++++