diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-21 15:13:05 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-09-30 08:31:01 +0300 |
commit | 4aa321484012541367d1a490375fe58ccdce44a4 (patch) | |
tree | 90e69fd5ae8358e377d040d0612aa47b445b7e36 /net | |
parent | 56d09f8d182eb0b737213311475e9f9a53984bac (diff) |
Drop unnecessary clone on a value that implements Copy
This was found by the clippy clone_on_copy lint:
https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
Diffstat (limited to 'net')
-rw-r--r-- | net/src/updates.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/updates.rs b/net/src/updates.rs index 07433b78..f4ff91dc 100644 --- a/net/src/updates.rs +++ b/net/src/updates.rs @@ -162,7 +162,7 @@ impl Manifest { read += n; if read == 4 { - prefixes.insert(u32::from_be_bytes(prefix.clone())); + prefixes.insert(u32::from_be_bytes(prefix)); continue 'parse; } } |