clippy: remove unnecessary clones

and from::<T>(T)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler committed 2021-01-20 16:22:59 +01:00
1 parent 47ea98e0e3
commit 4428818412
35 files changed
+47 -51

No files matched your search

+1 -1
View File
@@ -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 {