Skip to content

Commit 717b926

Browse files
committed
Replace Option::is_none_or with Option::is_some_and for MSRV.
1 parent 6335ad9 commit 717b926

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ fn determine_package_list(cx: &Context) -> Result<Vec<PackageRuns<'_>>> {
345345
}
346346
}
347347
let has_required_features = |id: &&PackageId| {
348-
cx.must_have_and_exclude_feature.as_ref().is_none_or(|s| cx.pkg_features(id).contains(s))
348+
!cx.must_have_and_exclude_feature.as_ref().is_some_and(|s| !cx.pkg_features(id).contains(s))
349349
};
350350
Ok(if cx.workspace {
351351
let ids: Vec<_> = cx

0 commit comments

Comments
 (0)