diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-12 17:36:25 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-12 17:36:25 +0100 |
commit | 295237476e2228cb58b417afe991cc2571a10bff (patch) | |
tree | eaed00d72c62bb31e5d613554709dc0a1b479975 | |
parent | 9d8360573622475232cee463291596273c5df1d3 (diff) | |
download | garage-295237476e2228cb58b417afe991cc2571a10bff.tar.gz garage-295237476e2228cb58b417afe991cc2571a10bff.zip |
fix formatting to comply with latest rustfmt
-rw-r--r-- | src/block/layout.rs | 3 | ||||
-rw-r--r-- | src/model/helper/locked.rs | 3 |
2 files changed, 4 insertions, 2 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 { diff --git a/src/model/helper/locked.rs b/src/model/helper/locked.rs index f8e06add..b541d548 100644 --- a/src/model/helper/locked.rs +++ b/src/model/helper/locked.rs @@ -279,7 +279,8 @@ impl<'a> LockedHelper<'a> { .local_aliases .get(alias_name) .cloned() - .flatten() != Some(bucket_id) + .flatten() + != Some(bucket_id) { return Err(GarageError::Message(format!( "Bucket {:?} does not have alias {} in namespace of key {}", |