aboutsummaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
Diffstat (limited to 'src/block')
-rw-r--r--src/block/layout.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/block/layout.rs b/src/block/layout.rs
index 00e3debb..e78f3f08 100644
--- a/src/block/layout.rs
+++ b/src/block/layout.rs
@@ -279,8 +279,7 @@ impl DataLayout {
u16::from_be_bytes([
hash.as_slice()[HASH_DRIVE_BYTES.0],
hash.as_slice()[HASH_DRIVE_BYTES.1],
- ]) as usize
- % DRIVE_NPART
+ ]) as usize % DRIVE_NPART
}
fn block_dir_from(&self, hash: &Hash, dir: &PathBuf) -> PathBuf {