Skip to content

Commit f4187f8

Browse files
committed
clippy
1 parent 3601261 commit f4187f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nexus/types/src/internal_api/views.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ impl UpdateStatus {
641641
new: &TargetReleaseDescription,
642642
caboose: &Caboose,
643643
) -> TufRepoVersion {
644-
let matching_caboose = |a: &&TufArtifactMeta| {
644+
let matching_caboose = |a: &TufArtifactMeta| {
645645
caboose.board == a.id.name
646646
&& matches!(
647647
a.id.kind.to_known(),
@@ -654,14 +654,14 @@ impl UpdateStatus {
654654
&& caboose.version == a.id.version.to_string()
655655
};
656656
if let Some(old) = old.tuf_repo() {
657-
if old.artifacts.iter().find(matching_caboose).is_some() {
657+
if old.artifacts.iter().any(matching_caboose) {
658658
return TufRepoVersion::Version(
659659
old.repo.system_version.clone(),
660660
);
661661
}
662662
}
663663
if let Some(new) = new.tuf_repo() {
664-
if new.artifacts.iter().find(matching_caboose).is_some() {
664+
if new.artifacts.iter().any(matching_caboose) {
665665
return TufRepoVersion::Version(
666666
new.repo.system_version.clone(),
667667
);

0 commit comments

Comments
 (0)