summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/symmetric.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/crypto/symmetric.rs
parent89337646884b59c894329432eea960be4b3e335e (diff)
Remove redundant field names.
Diffstat (limited to 'openpgp/src/crypto/symmetric.rs')
-rw-r--r--openpgp/src/crypto/symmetric.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/openpgp/src/crypto/symmetric.rs b/openpgp/src/crypto/symmetric.rs
index 2499aa60..1b0f997b 100644
--- a/openpgp/src/crypto/symmetric.rs
+++ b/openpgp/src/crypto/symmetric.rs
@@ -147,9 +147,9 @@ impl<R: io::Read> Decryptor<R> {
let block_size = algo.block_size()?;
Ok(Decryptor {
- source: source,
- dec: dec,
- block_size: block_size,
+ source,
+ dec,
+ block_size,
iv: vec![0u8; block_size],
buffer: Vec::with_capacity(block_size),
})
@@ -415,11 +415,11 @@ impl<W: io::Write> Encryptor<W> {
Ok(Encryptor {
inner: Some(sink),
- cipher: cipher,
- block_size: block_size,
+ cipher,
+ block_size,
iv: vec![0u8; block_size],
buffer: Vec::with_capacity(block_size),
- scratch: scratch,
+ scratch,
})
}