File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
nexus/types/src/internal_api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -641,7 +641,7 @@ impl UpdateStatus {
641
641
new : & TargetReleaseDescription ,
642
642
caboose : & Caboose ,
643
643
) -> TufRepoVersion {
644
- let matching_caboose = |a : & & TufArtifactMeta | {
644
+ let matching_caboose = |a : & TufArtifactMeta | {
645
645
caboose. board == a. id . name
646
646
&& matches ! (
647
647
a. id. kind. to_known( ) ,
@@ -654,14 +654,14 @@ impl UpdateStatus {
654
654
&& caboose. version == a. id . version . to_string ( )
655
655
} ;
656
656
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) {
658
658
return TufRepoVersion :: Version (
659
659
old. repo . system_version . clone ( ) ,
660
660
) ;
661
661
}
662
662
}
663
663
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) {
665
665
return TufRepoVersion :: Version (
666
666
new. repo . system_version . clone ( ) ,
667
667
) ;
You can’t perform that action at this time.
0 commit comments