Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sysinfo requirement from 0.32.0 to 0.33.0 #292

Merged
merged 3 commits into from
Dec 9, 2024

Fix compilation

3c15476
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Update sysinfo requirement from 0.32.0 to 0.33.0 #292

Fix compilation
3c15476
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Dec 9, 2024 in 2s

clippy

140 warnings

Details

Results

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

Versions

  • rustc 1.85.0-nightly (4d669fb34 2024-12-08)
  • cargo 1.85.0-nightly (20a443231 2024-12-06)
  • clippy 0.1.85 (4d669fb34e 2024-12-08)

Annotations

Check warning on line 31 in yaml_test_runner/src/skip.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

warning: this `map_or` can be simplified
  --> yaml_test_runner/src/skip.rs:29:9
   |
29 | /         self.tests
30 | |             .get(path)
31 | |             .map_or(false, |tests| tests.contains("*") || tests.contains(name))
   | |_______________________________________________________________________________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
   = note: `#[warn(clippy::unnecessary_map_or)]` on by default
help: use is_some_and instead
   |
29 ~         self.tests
30 +             .get(path).is_some_and(|tests| tests.contains("*") || tests.contains(name))
   |

Check warning on line 413 in yaml_test_runner/src/generator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> yaml_test_runner/src/generator.rs:413:47
    |
413 |                 let yaml = fs::read_to_string(&entry.path()).unwrap();
    |                                               ^^^^^^^^^^^^^ help: change this to: `entry.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

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
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 8943 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:8943:6
     |
8943 | impl<'b> UpdateByQueryRethrottleParts<'b> {
     |      ^^                               ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
8943 - impl<'b> UpdateByQueryRethrottleParts<'b> {
8943 + impl UpdateByQueryRethrottleParts<'_> {
     |

Check warning on line 8442 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:8442:6
     |
8442 | impl<'b> UpdateByQueryParts<'b> {
     |      ^^                     ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
8442 - impl<'b> UpdateByQueryParts<'b> {
8442 + impl UpdateByQueryParts<'_> {
     |

Check warning on line 8174 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:8174:6
     |
8174 | impl<'b> UpdateParts<'b> {
     |      ^^              ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
8174 - impl<'b> UpdateParts<'b> {
8174 + impl UpdateParts<'_> {
     |

Check warning on line 7906 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:7906:6
     |
7906 | impl<'b> TermvectorsParts<'b> {
     |      ^^                   ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
7906 - impl<'b> TermvectorsParts<'b> {
7906 + impl TermvectorsParts<'_> {
     |

Check warning on line 7624 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:7624:6
     |
7624 | impl<'b> SearchTemplateParts<'b> {
     |      ^^                      ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
7624 - impl<'b> SearchTemplateParts<'b> {
7624 + impl SearchTemplateParts<'_> {
     |

Check warning on line 7413 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:7413:6
     |
7413 | impl<'b> SearchShardsParts<'b> {
     |      ^^                    ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
7413 - impl<'b> SearchShardsParts<'b> {
7413 + impl SearchShardsParts<'_> {
     |

Check warning on line 6824 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:6824:6
     |
6824 | impl<'b> SearchParts<'b> {
     |      ^^              ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
6824 - impl<'b> SearchParts<'b> {
6824 + impl SearchParts<'_> {
     |

Check warning on line 6646 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:6646:6
     |
6646 | impl<'b> ScrollParts<'b> {
     |      ^^              ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
6646 - impl<'b> ScrollParts<'b> {
6646 + impl ScrollParts<'_> {
     |

Check warning on line 6356 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:6356:6
     |
6356 | impl<'b> RenderSearchTemplateParts<'b> {
     |      ^^                            ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
6356 - impl<'b> RenderSearchTemplateParts<'b> {
6356 + impl RenderSearchTemplateParts<'_> {
     |

Check warning on line 6201 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:6201:6
     |
6201 | impl<'b> ReindexRethrottleParts<'b> {
     |      ^^                         ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
6201 - impl<'b> ReindexRethrottleParts<'b> {
6201 + impl ReindexRethrottleParts<'_> {
     |

Check warning on line 5794 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:5794:6
     |
5794 | impl<'b> RankEvalParts<'b> {
     |      ^^                ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
5794 - impl<'b> RankEvalParts<'b> {
5794 + impl RankEvalParts<'_> {
     |

Check warning on line 5596 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:5596:6
     |
5596 | impl<'b> PutScriptParts<'b> {
     |      ^^                 ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
5596 - impl<'b> PutScriptParts<'b> {
5596 + impl PutScriptParts<'_> {
     |

Check warning on line 5213 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:5213:6
     |
5213 | impl<'b> MtermvectorsParts<'b> {
     |      ^^                    ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
5213 - impl<'b> MtermvectorsParts<'b> {
5213 + impl MtermvectorsParts<'_> {
     |

Check warning on line 5013 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: 'b

warning: the following explicit lifetimes could be elided: 'b
    --> opensearch/src/root/mod.rs:5013:6
     |
5013 | impl<'b> MsearchTemplateParts<'b> {
     |      ^^                       ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
5013 - impl<'b> MsearchTemplateParts<'b> {
5013 + impl MsearchTemplateParts<'_> {
     |