diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-06-26 14:53:37 +0200 |
---|---|---|
committer | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-06-26 19:14:45 +0200 |
commit | cf180e8f34570c98aad838c998d55e4b15763645 (patch) | |
tree | c067d049d9a5568945c96f0fdaa67d5ef423d60f /src/key.rs | |
parent | 411df4e53fdc58cfca2e473e54c1bed9cf17740d (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.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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() ); |