diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-07-11 01:03:37 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-07-11 18:57:19 -0700 |
| commit | a15c1b4464099fa65ec5da389381db83c22801ec (patch) | |
| tree | c1a724e767bdef35f7865ba55408fe0e3e52ce8e /src/libstd | |
| parent | f9bf69d253e43f9caf279953876d44f6219e71de (diff) | |
| download | rust-a15c1b4464099fa65ec5da389381db83c22801ec.tar.gz rust-a15c1b4464099fa65ec5da389381db83c22801ec.zip | |
Fix tests
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/local_data.rs | 2 |
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()); } |
