diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-14 22:26:17 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-19 10:43:23 -0500 |
| commit | c32a48293aab01133ed9e131fe452fd8c88ff9de (patch) | |
| tree | d33a9e381569cb745814cb69f6f50f0f2de0486d /src/libcore | |
| parent | bd90b936d73c0ea2c261cd8e7b9c43764cb2da05 (diff) | |
libcollections: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/hash/sip.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs index 15f6768edce..e10f5a9fed1 100644 --- a/src/libcore/hash/sip.rs +++ b/src/libcore/hash/sip.rs @@ -30,6 +30,7 @@ use default::Default; use super::{Hash, Hasher, Writer}; /// `SipState` computes a SipHash 2-4 hash over a stream of bytes. +#[deriving(Copy)] pub struct SipState { k0: u64, k1: u64, @@ -42,8 +43,6 @@ pub struct SipState { ntail: uint, // how many bytes in tail are valid } -impl Copy for SipState {} - // sadly, these macro definitions can't appear later, // because they're needed in the following defs; // this design could be improved. |
