src/backup/data_blob.rs: avoid Arc<CryptConfig>

use simple reference instead.
This commit is contained in:
Dietmar Maurer
2019-10-07 11:36:39 +02:00
parent 4ee8f53d07
commit 7123ff7d43
6 changed files with 15 additions and 16 deletions

View File

@ -53,7 +53,7 @@ fn verify_test_blob(mut cursor: Cursor<Vec<u8>>) -> Result<(), Error> {
let blob = DataBlob::from_raw(raw_data)?;
blob.verify_crc()?;
let data = blob.decode(Some(CRYPT_CONFIG.clone()))?;
let data = blob.decode(Some(&CRYPT_CONFIG))?;
if data != *TEST_DATA {
bail!("blob data is wrong (decode)");
}