From 6a90e80b6240d8213f2b99fa470ef6ee04552d1b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 20 Sep 2013 02:08:47 -0400 Subject: option: rewrite the API to use composition --- src/libstd/rt/uv/process.rs | 2 +- src/libstd/rt/uv/uvio.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd/rt/uv') diff --git a/src/libstd/rt/uv/process.rs b/src/libstd/rt/uv/process.rs index ddaf0c28725..176754de8f7 100644 --- a/src/libstd/rt/uv/process.rs +++ b/src/libstd/rt/uv/process.rs @@ -46,7 +46,7 @@ impl Process { exit_cb: uv::ExitCallback) -> Result<~[Option], uv::UvError> { - let cwd = config.cwd.map_move(|s| s.to_c_str()); + let cwd = config.cwd.map(|s| s.to_c_str()); extern fn on_exit(p: *uvll::uv_process_t, exit_status: libc::c_int, diff --git a/src/libstd/rt/uv/uvio.rs b/src/libstd/rt/uv/uvio.rs index f9b71db7043..1de6042003c 100644 --- a/src/libstd/rt/uv/uvio.rs +++ b/src/libstd/rt/uv/uvio.rs @@ -74,7 +74,7 @@ trait HomingIO { * * RESOLUTION IDEA: Since the task is dead, we should just abort the IO action. */ - do task.wake().map_move |mut task| { + do task.wake().map |mut task| { *ptr = Some(task.take_unwrap_home()); self.home().send(PinnedTask(task)); }; @@ -97,7 +97,7 @@ trait HomingIO { * * RESOLUTION IDEA: Since the task is dead, we should just abort the IO action. */ - do task.wake().map_move |mut task| { + do task.wake().map |mut task| { task.give_home(old.take()); scheduler.make_handle().send(TaskFromFriend(task)); }; @@ -1672,7 +1672,7 @@ fn test_simple_homed_udp_io_bind_then_move_task_then_home_and_close() { let scheduler: ~Scheduler = Local::take(); do scheduler.deschedule_running_task_and_then |_, task| { // unblock task - do task.wake().map_move |task| { + do task.wake().map |task| { // send self to sched2 tasksFriendHandle.take().send(TaskFromFriend(task)); }; -- cgit 1.4.1-3-g733a5