diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-07-15 13:04:51 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-07-15 13:04:51 +0200 |
commit | 198991b8621b96d592373c1a5bc2fb193c63fac7 (patch) | |
tree | 259a35a7c96a6a42100ffb2a2ebc5ad324e81f60 /openpgp/src/crypto/s2k.rs | |
parent | 84884193178bb68c8057648d0ec02f79d5f083e4 (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.rs | 2 |
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); |