core: option.map_consume -> option.map_move

This commit is contained in:
Erick Tryzelaar
2013-08-04 14:59:36 -07:00
parent 9218aaa00e
commit 1e490813b0
53 changed files with 176 additions and 175 deletions

View File

@@ -888,7 +888,7 @@ pub fn new_sctable_internal() -> SCTable {
// fetch the SCTable from TLS, create one if it doesn't yet exist.
pub fn get_sctable() -> @mut SCTable {
static sctable_key: local_data::Key<@@mut SCTable> = &local_data::Key;
match local_data::get(sctable_key, |k| k.map(|&k| *k)) {
match local_data::get(sctable_key, |k| k.map_move(|k| *k)) {
None => {
let new_table = @@mut new_sctable_internal();
local_data::set(sctable_key,new_table);