diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-22 16:18:48 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:55 +0100 |
commit | 8b272c162ce443e26c89afbda6fe4e06dd366118 (patch) | |
tree | f9f49ae3f222f8b307861a67056154ffd55fff55 /openpgp/src/crypto/symmetric.rs | |
parent | 0b7bff7337dd94422faf0a3172180ec8c28b1545 (diff) |
Remove unnecessary slicing.
- Found by clippy::redundant_slicing.
Diffstat (limited to 'openpgp/src/crypto/symmetric.rs')
-rw-r--r-- | openpgp/src/crypto/symmetric.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/symmetric.rs b/openpgp/src/crypto/symmetric.rs index fcfd1d23..ea4beb11 100644 --- a/openpgp/src/crypto/symmetric.rs +++ b/openpgp/src/crypto/symmetric.rs @@ -565,7 +565,7 @@ mod tests { decryptor.read_to_end(&mut plaintext).unwrap(); } - assert_eq!(&plaintext[..], &crate::tests::manifesto()[..]); + assert_eq!(&plaintext[..], crate::tests::manifesto()); } } } |