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

Fix a few more upcoming Clippy lints #2133

Merged
merged 1 commit into from
Jul 24, 2023

Fix a few more upcoming Clippy lints

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

Fix a few more upcoming Clippy lints #2133

Fix a few more upcoming Clippy lints
15e685a
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy succeeded Jul 23, 2023 in 0s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.71.0 (8ede3aae2 2023-07-12)
  • cargo 1.71.0 (cfd3bbd8f 2023-06-08)
  • clippy 0.1.71 (8ede3aa 2023-07-12)

Annotations

Check warning on line 468 in src/aggregation/bucket/range.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the function `SegmentRangeCollector::from_req_and_validate` doesn't need a mutable reference

warning: the function `SegmentRangeCollector::from_req_and_validate` doesn't need a mutable reference
   --> src/aggregation/bucket/range.rs:468:13
    |
468 |             &mut AggregationLimits::default().new_guard(),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
    = note: `#[warn(clippy::unnecessary_mut_passed)]` on by default