aboutsummaryrefslogtreecommitdiff
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
parent390a5d97fece744bcad3c5b7b7d31b2722d0b092 (diff)
downloadgarage-ec1a4759233875f38f3cc6c56a36a62161334dfe.tar.gz
garage-ec1a4759233875f38f3cc6c56a36a62161334dfe.zip
build with rust 1.82.0
-rw-r--r--flake.lock8
-rw-r--r--flake.nix6
-rw-r--r--nix/compile.nix2
-rw-r--r--src/block/layout.rs3
-rw-r--r--src/model/helper/locked.rs3
5 files changed, 12 insertions, 10 deletions
diff --git a/flake.lock b/flake.lock
index aff248fe..2cfbfda4 100644
--- a/flake.lock
+++ b/flake.lock
@@ -80,17 +80,17 @@
]
},
"locked": {
- "lastModified": 1736649126,
- "narHash": "sha256-XCw5sv/ePsroqiF3lJM6Y2X9EhPdHeE47gr3Q8b0UQw=",
+ "lastModified": 1738549608,
+ "narHash": "sha256-GdyT9QEUSx5k/n8kILuNy83vxxdyUfJ8jL5mMpQZWfw=",
"owner": "oxalica",
"repo": "rust-overlay",
- "rev": "162ab0edc2936508470199b2e8e6c444a2535019",
+ "rev": "35c6f8c4352f995ecd53896200769f80a3e8f22d",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
- "rev": "162ab0edc2936508470199b2e8e6c444a2535019",
+ "rev": "35c6f8c4352f995ecd53896200769f80a3e8f22d",
"type": "github"
}
},
diff --git a/flake.nix b/flake.nix
index ccaeba29..fc599e0b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,13 +2,13 @@
description =
"Garage, an S3-compatible distributed object store for self-hosted deployments";
- # Nixpkgs 24.11 as of 2025-01-12 has rustc v1.82
+ # Nixpkgs 24.11 as of 2025-01-12
inputs.nixpkgs.url =
"github:NixOS/nixpkgs/7c4869c47090dd7f9f1bdfb49a22aea026996815";
- # Rust overlay as of 2025-01-12
+ # Rust overlay as of 2025-02-03
inputs.rust-overlay.url =
- "github:oxalica/rust-overlay/162ab0edc2936508470199b2e8e6c444a2535019";
+ "github:oxalica/rust-overlay/35c6f8c4352f995ecd53896200769f80a3e8f22d";
inputs.rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
inputs.crane.url = "github:ipetkov/crane";
diff --git a/nix/compile.nix b/nix/compile.nix
index 4e3fdd7a..8cd88d01 100644
--- a/nix/compile.nix
+++ b/nix/compile.nix
@@ -48,7 +48,7 @@ let
inherit (pkgs) lib stdenv;
- toolchainFn = (p: p.rust-bin.stable."1.78.0".default.override {
+ toolchainFn = (p: p.rust-bin.stable."1.82.0".default.override {
targets = lib.optionals (target != null) [ rustTarget ];
extensions = [
"rust-src"
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 4f8b6e44..43f4f363 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 {}",