aboutsummaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
authorAlex Auvolat <lx@deuxfleurs.fr>2025-02-03 16:55:14 +0100
committerAlex Auvolat <lx@deuxfleurs.fr>2025-02-03 17:46:48 +0100
commitec1a4759233875f38f3cc6c56a36a62161334dfe (patch)
treebaa34055c892e46f26f3c9ac18371ed0fc43abb4 /src/block
parent390a5d97fece744bcad3c5b7b7d31b2722d0b092 (diff)
downloadgarage-ec1a4759233875f38f3cc6c56a36a62161334dfe.tar.gz
garage-ec1a4759233875f38f3cc6c56a36a62161334dfe.zip
build with rust 1.82.0
Diffstat (limited to 'src/block')
-rw-r--r--src/block/layout.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/block/layout.rs b/src/block/layout.rs
index e78f3f08..00e3debb 100644
--- a/src/block/layout.rs
+++ b/src/block/layout.rs
@@ -279,7 +279,8 @@ 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 {