summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/s2k.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-07-15 13:04:51 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-07-15 13:04:51 +0200
commit198991b8621b96d592373c1a5bc2fb193c63fac7 (patch)
tree259a35a7c96a6a42100ffb2a2ebc5ad324e81f60 /openpgp/src/crypto/s2k.rs
parent84884193178bb68c8057648d0ec02f79d5f083e4 (diff)
Make more variables immutable.
- With the MIR-based borrow-checker being more precise than the AST-based one, we can make more variables immutable.
Diffstat (limited to 'openpgp/src/crypto/s2k.rs')
-rw-r--r--openpgp/src/crypto/s2k.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/s2k.rs b/openpgp/src/crypto/s2k.rs
index 72b790e5..fcd41a62 100644
--- a/openpgp/src/crypto/s2k.rs
+++ b/openpgp/src/crypto/s2k.rs
@@ -397,7 +397,7 @@ mod tests {
for test in tests.iter() {
let path = crate::tests::message(&format!("s2k/{}", test.filename));
- let mut pp = PacketParser::from_bytes(path).unwrap().unwrap();
+ let pp = PacketParser::from_bytes(path).unwrap().unwrap();
if let Packet::SKESK(SKESK::V4(ref skesk)) = pp.packet {
assert_eq!(skesk.symmetric_algo(), test.cipher_algo);
assert_eq!(skesk.s2k(), &test.s2k);