diff options
author | Alex Auvolat <alex@adnab.me> | 2023-12-11 15:31:47 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-12-11 15:31:47 +0100 |
commit | 85b5a6bcd11c0a7651e4c589569e1935a3d18e46 (patch) | |
tree | 5aabcc8e161dfb304514e23e59f9ccf5a52a6d0a /src/rpc/layout/helper.rs | |
parent | e4f493b48156e6e30f16fba10f300f6cb5fe0b0d (diff) | |
download | garage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.tar.gz garage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.zip |
fix some clippy lints
Diffstat (limited to 'src/rpc/layout/helper.rs')
-rw-r--r-- | src/rpc/layout/helper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/layout/helper.rs b/src/rpc/layout/helper.rs index 2ba010b8..7e5d37e9 100644 --- a/src/rpc/layout/helper.rs +++ b/src/rpc/layout/helper.rs @@ -129,7 +129,7 @@ impl LayoutHelper { where F: FnOnce(&mut LayoutHistory) -> bool, { - let changed = f(&mut self.layout.as_mut().unwrap()); + let changed = f(self.layout.as_mut().unwrap()); if changed { *self = Self::new( self.replication_mode, |