From a15c1b4464099fa65ec5da389381db83c22801ec Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 11 Jul 2013 01:03:37 -0700 Subject: Fix tests --- src/libstd/local_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') 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()); } -- cgit 1.4.1-3-g733a5