diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-14 19:17:59 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-14 19:32:52 -0400 |
| commit | 4377802202d59eb5aeb36bb6b656d376bbdf67dc (patch) | |
| tree | fddc8b08325332da6b2db0d4e6f3f7df1e9e9212 /src/libcore/send_map.rs | |
| parent | 821fa337ffbc81fe5dad7dd1b3fa49dac84aa4ef (diff) | |
De-mode task.rs and add some option::foo_ref() helpers
Diffstat (limited to 'src/libcore/send_map.rs')
| -rw-r--r-- | src/libcore/send_map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<K,V> &const linear_map<K,V> { - fn len() -> uint { + pure fn len() -> uint { self.size } - fn is_empty() -> bool { + pure fn is_empty() -> bool { self.len() == 0 } |
