aboutsummaryrefslogtreecommitdiff
path: root/src/garage/secrets.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-08 19:02:48 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-08 23:29:57 +0100
commitbcbd15da84181ad94ece7e794933a6ebd388f5bc (patch)
treec7b21f8b5d9c800f3a0be5f1ca26a0c956c63288 /src/garage/secrets.rs
parentad5ce968d212d951f7459c36bcbdd78ce39be585 (diff)
downloadgarage-bcbd15da84181ad94ece7e794933a6ebd388f5bc.tar.gz
garage-bcbd15da84181ad94ece7e794933a6ebd388f5bc.zip
[dep-upgrade-202402] cargo clippy fixes
Diffstat (limited to 'src/garage/secrets.rs')
-rw-r--r--src/garage/secrets.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/secrets.rs b/src/garage/secrets.rs
index e96be9e4..8c89a262 100644
--- a/src/garage/secrets.rs
+++ b/src/garage/secrets.rs
@@ -213,10 +213,10 @@ mod tests {
};
use std::os::unix::fs::PermissionsExt;
- let metadata = std::fs::metadata(&path_secret_path)?;
+ let metadata = std::fs::metadata(path_secret_path)?;
let mut perm = metadata.permissions();
perm.set_mode(0o660);
- std::fs::set_permissions(&path_secret_path, perm)?;
+ std::fs::set_permissions(path_secret_path, perm)?;
// Config file that just specifies the path
let config = read_config(path_config.to_path_buf())?;