We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60df577 commit 7febdc6Copy full SHA for 7febdc6
crates/disks/src/lib.rs
@@ -63,7 +63,7 @@ impl BlockDevice {
63
64
/// Returns the path to the partition with the given index.
65
/// No attempt is made to verify the existence of the partition.
66
- pub fn partition_path(&self, index: u32) -> PathBuf {
+ pub fn partition_path(&self, index: usize) -> PathBuf {
67
if let BlockDevice::Disk(disk) = self {
68
match **disk {
69
Disk::Scsi(_) | Disk::Virtual(_) => {
0 commit comments