Skip to content

Commit

Permalink
Merge pull request #427 from hermit-os/clippy-unnecessary_map_or
Browse files Browse the repository at this point in the history
fix(riscv64): `clippy::unnecessary_map_or`
  • Loading branch information
mkroening authored Jan 14, 2025
2 parents 7e9d808 + 579a8c6 commit 4489ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/riscv64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn find_kernel_multiboot(chosen: &FdtNode<'_, '_>) -> Option<&'static [u8]> {
.children()
.filter(|child| child.name.starts_with("module@"))
.find(|child| {
child.compatible().map_or(false, |compatible| {
child.compatible().is_some_and(|compatible| {
compatible
.all()
.any(|compatible| compatible == "multiboot,ramdisk")
Expand Down

0 comments on commit 4489ece

Please sign in to comment.