From 4377802202d59eb5aeb36bb6b656d376bbdf67dc Mon Sep 17 00:00:00 2001 From: Ben Blum Date: Tue, 14 Aug 2012 19:17:59 -0400 Subject: De-mode task.rs and add some option::foo_ref() helpers --- src/libcore/send_map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore/send_map.rs') diff --git a/src/libcore/send_map.rs b/src/libcore/send_map.rs index 6ce590c5ec9..1a130e0e273 100644 --- a/src/libcore/send_map.rs +++ b/src/libcore/send_map.rs @@ -237,11 +237,11 @@ mod linear { } impl &const linear_map { - fn len() -> uint { + pure fn len() -> uint { self.size } - fn is_empty() -> bool { + pure fn is_empty() -> bool { self.len() == 0 } -- cgit 1.4.1-3-g733a5