diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-22 12:58:47 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:55 +0100 |
commit | 049055e3ff5ffe86700b668e924fbff96e82be94 (patch) | |
tree | 30dfd63e4d1c3016210b698813e99b70787890e8 /openpgp/src/parse/hashed_reader.rs | |
parent | 97ce753fefae770ee0b5b02a611d75e29a7cd01d (diff) |
Remove unnecessary borrows.
- Fixed with the help of clippy::needless_borrow.
Diffstat (limited to 'openpgp/src/parse/hashed_reader.rs')
-rw-r--r-- | openpgp/src/parse/hashed_reader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse/hashed_reader.rs b/openpgp/src/parse/hashed_reader.rs index f4ee5964..0568829d 100644 --- a/openpgp/src/parse/hashed_reader.rs +++ b/openpgp/src/parse/hashed_reader.rs @@ -146,8 +146,8 @@ impl Cookie { t!("{:?}: group {} {:?} hashing {} bytes.", hashes_for, i, mode.map(|ctx| ctx.algo()), data.len()); match mode { - HashingMode::Binary(h) => h.update(&data), - HashingMode::Text(h) => hash_update_text(h, &data), + HashingMode::Binary(h) => h.update(data), + HashingMode::Text(h) => hash_update_text(h, data), } } } |