summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-03-25 12:19:35 +0100
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-03-26 18:33:21 +0100
commit70a96487b25557c3b1ffcba4b61cc1140e76935a (patch)
tree3846c7680a75047b81fe3b8307da47d4a4b0c080 /openpgp/src/serialize/stream.rs
parent89337646884b59c894329432eea960be4b3e335e (diff)
Remove redundant field names.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 76e7b4a3..9ff26434 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -64,7 +64,7 @@ impl Cookie {
pub(crate) // For padding.rs
fn new(level: usize) -> Self {
Cookie {
- level: level,
+ level,
private: Private::Nothing,
}
}
@@ -290,7 +290,7 @@ impl<'a> Signer<'a> {
creation_time: None,
hash: HashAlgorithm::default().context().unwrap(),
cookie: Cookie {
- level: level,
+ level,
private: Private::Signer,
},
position: 0,
@@ -1131,7 +1131,7 @@ impl<'a> Encryptor<'a> {
let mut nonce = vec![0; algo.iv_size()?];
crypto::random(&mut nonce);
Some(AEADParameters {
- algo: algo,
+ algo,
chunk_size: Self::AEAD_CHUNK_SIZE,
nonce: nonce.into_boxed_slice(),
})