Skip to content

Commit 7c9789f

Browse files
committed
refactor: use trust roots by value
1 parent 10c734f commit 7c9789f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cipher.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ where
310310
mut message,
311311
} = sealed_sender_decrypt(
312312
ciphertext,
313-
// Turn Vec<PublicKey> into Vec<&PublicKey> and then coerce into &[&PublicKey]
314-
&self.trust_roots.iter().collect::<Vec<_>>(),
313+
&self.trust_roots,
315314
Timestamp::from_epoch_millis(envelope.timestamp()),
316315
None,
317316
self.local_uuid.to_string(),

0 commit comments

Comments
 (0)