Skip to content

Commit

Permalink
Don't drop a mutable pointer
Browse files Browse the repository at this point in the history
Same effect as not doing anything anyway.

Closes rust-lang#54
  • Loading branch information
alexcrichton committed Aug 12, 2016
1 parent ff1b1b1 commit c923a77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/empty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,5 @@ impl<T, E> Future for Empty<T, E>
Poll::NotReady
}

fn schedule(&mut self, task: &mut Task) {
drop(task);
}
fn schedule(&mut self, _task: &mut Task) {}
}

0 comments on commit c923a77

Please sign in to comment.