Skip to content

Add new bulk create constructor without optional _id field (#245) (#247) #812

Add new bulk create constructor without optional _id field (#245) (#247)

Add new bulk create constructor without optional _id field (#245) (#247) #812

GitHub Actions / clippy succeeded Apr 8, 2024 in 0s

clippy

20 warnings

Details

Results

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

Versions

  • rustc 1.79.0-nightly (9d5cdf75a 2024-04-07)
  • cargo 1.79.0-nightly (28e7b2bc0 2024-04-05)
  • clippy 0.1.79 (9d5cdf7 2024-04-07)

Annotations

Check warning on line 68 in yaml_test_runner/src/step/skip.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

match can be simplified with `.unwrap_or_default()`

warning: match can be simplified with `.unwrap_or_default()`
  --> yaml_test_runner/src/step/skip.rs:65:9
   |
65 | /         match &self.features {
66 | |             Some(v) => v,
67 | |             None => &[],
68 | |         }
   | |_________^ help: replace it with: `(&self.features).unwrap_or_default()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
   = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default

Check warning on line 9250 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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, ()> {
     |

Check warning on line 9230 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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, ()> {
     |

Check warning on line 9216 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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> {
     |

Check warning on line 9190 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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> {
     |

Check warning on line 9178 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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> {
     |

Check warning on line 9172 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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> {
     |

Check warning on line 9162 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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> {
     |

Check warning on line 9134 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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, ()> {
     |

Check warning on line 9116 in opensearch/src/root/mod.rs

See this annotation in the file changed.

@github-actions 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: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> {
     |

Check warning on line 425 in opensearch/src/params.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

warning: usage of a legacy numeric method
   --> opensearch/src/params.rs:425:34
    |
425 |                 if value <= i32::max_value() as u64 {
    |                                  ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
425 |                 if value <= i32::MAX as u64 {
    |                                  ~~~

Check warning on line 414 in opensearch/src/params.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

warning: usage of a legacy numeric method
   --> opensearch/src/params.rs:414:34
    |
414 |                 if value <= i32::max_value() as i64 {
    |                                  ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
help: use the associated constant instead
    |
414 |                 if value <= i32::MAX as i64 {
    |                                  ~~~

Check warning on line 37 in api_generator/src/generator/code_gen/url/url_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `str` is imported redundantly

warning: the item `str` is imported redundantly
  --> api_generator/src/generator/code_gen/url/url_builder.rs:37:55
   |
35 | use crate::generator::{code_gen::*, Path, Type, TypeKind};
   |                        ----------- the item `str` is already imported here
36 | use serde::{Deserialize, Deserializer};
37 | use std::{collections::BTreeMap, fmt, iter::Iterator, str};
   |                                                       ^^^

Check warning on line 37 in api_generator/src/generator/code_gen/url/url_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Iterator` is imported redundantly

warning: the item `Iterator` is imported redundantly
  --> api_generator/src/generator/code_gen/url/url_builder.rs:37:39
   |
37 | use std::{collections::BTreeMap, fmt, iter::Iterator, str};
   |                                       ^^^^^^^^^^^^^^
  --> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:134:13
   |
   = note: the item `Iterator` is already defined here

Check warning on line 35 in api_generator/src/generator/code_gen/url/url_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `TypeKind` is imported redundantly

warning: the item `TypeKind` is imported redundantly
  --> api_generator/src/generator/code_gen/url/url_builder.rs:35:49
   |
35 | use crate::generator::{code_gen::*, Path, Type, TypeKind};
   |                        -----------              ^^^^^^^^
   |                        |
   |                        the item `TypeKind` is already imported here

Check warning on line 36 in api_generator/src/generator/code_gen/url/enum_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Inflector` is imported redundantly

warning: the item `Inflector` is imported redundantly
  --> api_generator/src/generator/code_gen/url/enum_builder.rs:36:5
   |
35 | use crate::generator::{code_gen::*, ApiEndpoint, Path};
   |                        ----------- the item `Inflector` is already imported here
36 | use inflector::Inflector;
   |     ^^^^^^^^^^^^^^^^^^^^

Check warning on line 27 in api_generator/src/generator/code_gen/request/request_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `ImplItem` is imported redundantly

warning: the item `ImplItem` is imported redundantly
  --> api_generator/src/generator/code_gen/request/request_builder.rs:27:45
   |
20 |     code_gen::{url::enum_builder::EnumBuilder, *},
   |                                                - the item `ImplItem` is already imported here
...
27 | use syn::{parse::Parser, Field, FieldValue, ImplItem};
   |                                             ^^^^^^^^

Check warning on line 26 in api_generator/src/generator/code_gen/request/request_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `str` is imported redundantly

warning: the item `str` is imported redundantly
  --> api_generator/src/generator/code_gen/request/request_builder.rs:26:50
   |
20 |     code_gen::{url::enum_builder::EnumBuilder, *},
   |                                                - the item `str` is already imported here
...
26 | use std::{collections::BTreeMap, fs, path::Path, str};
   |                                                  ^^^

Check warning on line 23 in api_generator/src/generator/code_gen/request/request_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `Inflector` is imported redundantly

warning: the item `Inflector` is imported redundantly
  --> api_generator/src/generator/code_gen/request/request_builder.rs:23:5
   |
20 |     code_gen::{url::enum_builder::EnumBuilder, *},
   |                                                - the item `Inflector` is already imported here
...
23 | use inflector::Inflector;
   |     ^^^^^^^^^^^^^^^^^^^^

Check warning on line 21 in api_generator/src/generator/code_gen/request/request_builder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the item `TypeKind` is imported redundantly

warning: the item `TypeKind` is imported redundantly
  --> api_generator/src/generator/code_gen/request/request_builder.rs:21:48
   |
20 |     code_gen::{url::enum_builder::EnumBuilder, *},
   |                                                - the item `TypeKind` is already imported here
21 |     ApiEndpoint, Deprecated, HttpMethod, Type, TypeKind,
   |                                                ^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default