diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-09-15 16:42:13 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-09-15 16:42:32 +0200 |
commit | a5baec1a414a64ba8b03a924d2a15abadb41d2c8 (patch) | |
tree | 31a0c24dcda58e55c3e6e354f230c29afe016dd2 /ipc | |
parent | 36e3534f682916ddbf91948b0bc9977168380f5e (diff) |
ipc: Avoid creating unused borrows.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/src/keygrip.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/src/keygrip.rs b/ipc/src/keygrip.rs index 328b8e45..5bb2ee07 100644 --- a/ipc/src/keygrip.rs +++ b/ipc/src/keygrip.rs @@ -49,7 +49,7 @@ impl std::str::FromStr for Keygrip { let bytes = openpgp::fmt::hex::decode_pretty(s)?; if bytes.len() == 20 { let mut digest = [0; 20]; - &mut digest[..].copy_from_slice(&bytes[..]); + digest[..].copy_from_slice(&bytes[..]); Ok(Keygrip(digest)) } else { Err(Error::InvalidArgument( |