Skip to content

Commit 7febdc6

Browse files
committed
disks: usize for wider library compat
Signed-off-by: Ikey Doherty <[email protected]>
1 parent 60df577 commit 7febdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/disks/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl BlockDevice {
6363

6464
/// Returns the path to the partition with the given index.
6565
/// No attempt is made to verify the existence of the partition.
66-
pub fn partition_path(&self, index: u32) -> PathBuf {
66+
pub fn partition_path(&self, index: usize) -> PathBuf {
6767
if let BlockDevice::Disk(disk) = self {
6868
match **disk {
6969
Disk::Scsi(_) | Disk::Virtual(_) => {

0 commit comments

Comments
 (0)