Skip to content

Commit 10a5641

Browse files
committed
nvme: fix indentation, unreachable pattern warning and typos
1 parent 1e648ca commit 10a5641

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/drivers/nvme.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ impl vroom::Allocator for NvmeAllocator {
305305
"NVMe driver: The given virtual address could not be mapped to a physical one."
306306
.into(),
307307
);
308-
};
308+
};
309309
Ok(physical_address.as_usize() as *mut T)
310310
}
311311
}

src/drivers/pci.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ impl PciDriver {
414414
fn nvme_handler() {}
415415
(irq_number, nvme_handler)
416416
}
417-
_ => todo!(),
417+
#[allow(unreachable_patterns)]
418+
_ => todo!(),
418419
}
419420
}
420421
}

0 commit comments

Comments
 (0)