diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-22 22:21:31 +0200 |
---|---|---|
committer | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-22 22:33:40 +0200 |
commit | 3882d1b1e4a8a0b8453d08fdf380bb1b3e3be510 (patch) | |
tree | 48e17a99e162eff186be3d1f493df8cd247555e5 /src/key.rs | |
parent | 3488d4f15f3d4e23ab37fd4c19f02805f55081d3 (diff) |
refactor: manually fix remaining clippy lints
Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
Diffstat (limited to 'src/key.rs')
-rw-r--r-- | src/key.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ fn ask_for_passphrase(sb: &bch_sb_handle) -> anyhow::Result<()> { } const BCH_KEY_MAGIC: &str = "bch**key"; -fn unlock_master_key(sb: &bch_sb_handle, passphrase: &String) -> anyhow::Result<()> { +fn unlock_master_key(sb: &bch_sb_handle, passphrase: &str) -> anyhow::Result<()> { use bch_bindgen::bcachefs::{self, bch2_chacha_encrypt_key, bch_encrypted_key, bch_key}; use byteorder::{LittleEndian, ReadBytesExt}; use std::os::raw::c_char; |