about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/local_data.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/local_data.rs b/src/libstd/local_data.rs
index fa981d273e2..b241de88700 100644
--- a/src/libstd/local_data.rs
+++ b/src/libstd/local_data.rs
@@ -170,7 +170,7 @@ fn test_tls_pop() {
     unsafe {
         fn my_key(_x: @~str) { }
         set(my_key, @~"weasel");
-        assert!(*(pop(my_key, |k| k.map(|&k| *k)).get()) == ~"weasel");
+        assert!(*(pop(my_key).get()) == ~"weasel");
         // Pop must remove the data from the map.
         assert!(pop(my_key).is_none());
     }