Skip to content

Commit

Permalink
libstd: Fix merge fallout.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Aug 28, 2013
1 parent d9bb78e commit 1ad2239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/libstd/rt/sched.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ impl Scheduler {
}

pub fn run_task(task: ~Task) {
let sched = Local::take::<Scheduler>();
let sched: ~Scheduler = Local::take();
sched.process_task(task, Scheduler::switch_task).map_move(Local::put);
}

Expand Down
8 changes: 4 additions & 4 deletions src/libstd/rt/uv/uvio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ trait HomingIO {
let old_home = Cell::new_empty();
let old_home_ptr = &old_home;
do task::unkillable { // FIXME(#8674)
let scheduler = Local::take::<Scheduler>();
let scheduler: ~Scheduler = Local::take();
do scheduler.deschedule_running_task_and_then |_, task| {
// get the old home first
do task.wake().map_move |mut task| {
Expand All @@ -72,7 +72,7 @@ trait HomingIO {

// unhome home
do task::unkillable { // FIXME(#8674)
let scheduler = Local::take::<Scheduler>();
let scheduler: ~Scheduler = Local::take();
do scheduler.deschedule_running_task_and_then |scheduler, task| {
do task.wake().map_move |mut task| {
task.give_home(old_home.take());
Expand Down Expand Up @@ -122,7 +122,7 @@ trait HomingIO {

// get a handle for the current scheduler
macro_rules! get_handle_to_current_scheduler(
() => (do Local::borrow::<Scheduler, SchedHandle> |sched| { sched.make_handle() })
() => (do Local::borrow |sched: &mut Scheduler| { sched.make_handle() })
)

enum SocketNameKind {
Expand Down Expand Up @@ -765,7 +765,7 @@ impl RtioTcpStream for UvTcpStream {

unsafe { (*result_cell_ptr).put_back(result); }

let scheduler: ~Scheduler = Local::take::<Scheduler>();
let scheduler: ~Scheduler = Local::take();
scheduler.resume_blocked_task_immediately(task_cell.take());
}
}
Expand Down

0 comments on commit 1ad2239

Please sign in to comment.