Skip to content

Commit 317d300

Browse files
committed
Use u64 for block count.
This should be consistent with the type used for block indices.
1 parent bf3e225 commit 317d300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub trait BlockDevice<const BLOCK_SIZE: usize = 512> {
6262
type Error;
6363

6464
/// Returns the size of the device in blocks.
65-
fn block_count(&self) -> Result<usize, Self::Error>;
65+
fn block_count(&self) -> Result<u64, Self::Error>;
6666

6767
/// Reads some number of blocks from the device, starting at `first_block_index`.
6868
///

0 commit comments

Comments
 (0)