Skip to content

Commit 44a413b

Browse files
committed
convert to vecs without allocation
1 parent 9567136 commit 44a413b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/storable_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ impl StorableBuilder {
3737
Storable {
3838
data: data_blob,
3939
encryption_metadata: Some(EncryptionMetadata {
40-
nonce: nonce.to_vec(),
41-
tag: tag.to_vec(),
40+
nonce: Vec::from(nonce),
41+
tag: Vec::from(tag),
4242
cipher_format: CHACHA20_CIPHER_NAME.to_string(),
4343
}),
4444
}

0 commit comments

Comments
 (0)