Skip to content

Commit 75805b8

Browse files
authored
Use PskBundle::new function in benches. (#76)
1 parent a27764a commit 75805b8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

benches/benches.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ where
3838
let mut psk_id = [0u8; 8];
3939
csprng.fill_bytes(&mut psk);
4040
csprng.fill_bytes(&mut psk_id);
41-
let psk_bundle = PskBundle {
42-
psk: &psk,
43-
psk_id: &psk_id,
44-
};
41+
let psk_bundle = PskBundle::new(&psk, &psk_id).unwrap();
4542

4643
// Make a sender keypair for OpModeAuth and OpModeAuthPsk
4744
let (sk_sender, pk_sender) = Kem::gen_keypair(&mut csprng);

0 commit comments

Comments
 (0)