about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-14 22:26:17 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-19 10:43:23 -0500
commitc32a48293aab01133ed9e131fe452fd8c88ff9de (patch)
treed33a9e381569cb745814cb69f6f50f0f2de0486d /src/libcore
parentbd90b936d73c0ea2c261cd8e7b9c43764cb2da05 (diff)
libcollections: use `#[deriving(Copy)]`
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/hash/sip.rs3
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.