about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-03-11 15:21:00 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-03-11 15:23:45 -0400
commit86cf2482624b89150615313662d2e823cdcaa31d (patch)
treef259e17342387a8d5205d97c82f008776b1b2d42
parent2ebb67487c1530822d83d6da6f71fa62cb68f2cd (diff)
downloadrust-86cf2482624b89150615313662d2e823cdcaa31d.tar.gz
rust-86cf2482624b89150615313662d2e823cdcaa31d.zip
Add deriving_eq to Cell.
-rw-r--r--src/libcore/cell.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index 91a4ded60ef..da247c648fc 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -15,6 +15,7 @@ use prelude::*;
 ///
 /// Similar to a mutable option type, but friendlier.
 
+#[deriving_eq]
 pub struct Cell<T> {
     mut value: Option<T>
 }