Skip to content

Commit

Permalink
fix(riscv64): clippy::unnecessary_map_or
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Jan 14, 2025
1 parent 7e9d808 commit 579a8c6
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 579a8c6

Please sign in to comment.