summaryrefslogtreecommitdiff
path: root/src/key.rs
diff options
context:
space:
mode:
authorThomas Mühlbacher <tmuehlbacher@posteo.net>2024-06-26 14:53:37 +0200
committerThomas Mühlbacher <tmuehlbacher@posteo.net>2024-06-26 19:14:45 +0200
commitcf180e8f34570c98aad838c998d55e4b15763645 (patch)
treec067d049d9a5568945c96f0fdaa67d5ef423d60f /src/key.rs
parent411df4e53fdc58cfca2e473e54c1bed9cf17740d (diff)
refactor: rm function param only used for log msg
We lose that bit of info but it's weird to require a parameter simply because we want to use it for a log message. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
Diffstat (limited to 'src/key.rs')
-rw-r--r--src/key.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/key.rs b/src/key.rs
index 0e061ee5..81d4e3c0 100644
--- a/src/key.rs
+++ b/src/key.rs
@@ -168,12 +168,11 @@ impl Passphrase {
Ok(Self(CString::new(passphrase.trim_end_matches('\n'))?))
}
- pub fn new_from_file(sb: &bch_sb_handle, passphrase_file: impl AsRef<Path>) -> Result<Self> {
+ pub fn new_from_file(passphrase_file: impl AsRef<Path>) -> Result<Self> {
let passphrase_file = passphrase_file.as_ref();
info!(
- "Attempting to unlock key for filesystem {} with passphrase from file {}",
- sb.sb().uuid(),
+ "Attempting to unlock key with passphrase from file {}",
passphrase_file.display()
);