summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/stream.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-09-15 16:11:55 +0200
committerJustus Winter <justus@sequoia-pgp.org>2021-09-15 16:19:01 +0200
commit36e3534f682916ddbf91948b0bc9977168380f5e (patch)
tree508978bbd0a503672c38634bee4f75e4260514ad /openpgp/src/parse/stream.rs
parent4ef309b940c79b14be3703b08e8f4dd73e2d1de1 (diff)
openpgp: Avoid creating unused borrows.
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r--openpgp/src/parse/stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index a554e8c3..1827287a 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -2828,7 +2828,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> {
assert!(self.oppr.is_none());
assert!(self.cursor <= reserve.len());
let n = cmp::min(buf.len(), reserve.len() - self.cursor);
- &mut buf[..n]
+ buf[..n]
.copy_from_slice(&reserve[self.cursor..n + self.cursor]);
self.cursor += n;
return Ok(n);