diff options
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 3f33e833..fff01171 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -1900,10 +1900,11 @@ mod test { let mut buf = vec![]; { let key = tpk.keys_all().signing_capable().nth(0).unwrap().2; - let mut keypair = key.clone().mark_parts_secret().into_keypair().unwrap(); + let keypair = + key.clone().mark_parts_secret().into_keypair().unwrap(); let m = Message::new(&mut buf); - let signer = Signer::new(m, vec![&mut keypair], None).unwrap(); + let signer = Signer::new(m, keypair).build().unwrap(); let mut ls = LiteralWriter::new(signer, None, None, None).unwrap(); ls.write_all(&mut vec![42u8; 30 * 1024 * 1024]).unwrap(); |