about summary refs log tree commit diff
path: root/src/libstd/cell.rs
diff options
context:
space:
mode:
authorJesse Jones <jesse9jones@gmail.com>2012-11-17 10:13:11 -0800
committerBrian Anderson <banderson@mozilla.com>2012-11-18 13:25:26 -0800
commit6d99a2f8a99baedab90fb8bd6cb6e1507fad736b (patch)
tree543df1adb01550cf549166c515312cf04c168b24 /src/libstd/cell.rs
parent15989ecb139a4ee4a53e6657fd4fc8cee9d729de (diff)
Made more stuff pure.
escape functions in char, io.with_str_reader, base64 and md5sum, cell.empty_cell
and is_empty.
Diffstat (limited to 'src/libstd/cell.rs')
-rw-r--r--src/libstd/cell.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/cell.rs b/src/libstd/cell.rs
index 4f79bf2b316..78027aa8907 100644
--- a/src/libstd/cell.rs
+++ b/src/libstd/cell.rs
@@ -12,7 +12,7 @@ pub fn Cell<T>(value: T) -> Cell<T> {
     Cell { value: Some(move value) }
 }
 
-pub fn empty_cell<T>() -> Cell<T> {
+pub pure fn empty_cell<T>() -> Cell<T> {
     Cell { value: None }
 }
 
@@ -37,7 +37,7 @@ impl<T> Cell<T> {
     }
 
     /// Returns true if the cell is empty and false if the cell is full.
-    fn is_empty() -> bool {
+    pure fn is_empty() -> bool {
         self.value.is_none()
     }