Skip to content

Commit

Permalink
Clippy lint clean
Browse files Browse the repository at this point in the history
Summary:
Fixes all Rust 1.81.0 (current) and Rust 1.83.0 (upcoming in D67041293)
rustc/clippy lint issues in rust_foundation (and related) code.

Reviewed By: dtolnay

Differential Revision: D67262078

fbshipit-source-id: bd8807f76b3f3d68d610b69a0448983b4bf1fe41
  • Loading branch information
zertosh authored and facebook-github-bot committed Dec 16, 2024
1 parent 6c2ab75 commit c5cf9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fixups/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl FixupConfigFile {
pub fn platform_configs<'a>(
&'a self,
version: &'a semver::Version,
) -> impl Iterator<Item = (&PlatformExpr, &FixupConfig)> + 'a {
) -> impl Iterator<Item = (&'a PlatformExpr, &'a FixupConfig)> + 'a {
self.platform_fixup
.iter()
.filter(move |(_, cfg)| cfg.version_applies(version))
Expand All @@ -111,7 +111,7 @@ impl FixupConfigFile {
pub fn configs<'a>(
&'a self,
version: &'a semver::Version,
) -> impl Iterator<Item = (Option<&PlatformExpr>, &FixupConfig)> + 'a {
) -> impl Iterator<Item = (Option<&'a PlatformExpr>, &'a FixupConfig)> + 'a {
self.base(version)
.into_iter()
.map(|base| (None, base))
Expand Down

0 comments on commit c5cf9d1

Please sign in to comment.