clippy: remove unnecessary clones
and from::<T>(T) Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
1 parent
47ea98e0e3
commit
4428818412
35 files changed
+47
-51
No files matched your search
@@ -118,7 +118,7 @@ fn create(kdf: Option<Kdf>, path: Option<String>) -> Result<(), Error> {
|
||||
|
||||
let mut key_array = [0u8; 32];
|
||||
proxmox::sys::linux::fill_with_random_data(&mut key_array)?;
|
||||
let crypt_config = CryptConfig::new(key_array.clone())?;
|
||||
let crypt_config = CryptConfig::new(key_array)?;
|
||||
let key = key_array.to_vec();
|
||||
|
||||
match kdf {
|
||||
|
||||
Reference in new issue
Block a user