std: fix fallout

This commit is contained in:
Jorge Aparicio
2015-01-01 22:33:39 -05:00
parent 6b116bedaf
commit 1971a24441
11 changed files with 93 additions and 37 deletions

View File

@@ -936,7 +936,9 @@ impl<T: Send> select::Packet for Receiver<T> {
}
#[unstable]
impl<'a, T: Send> Iterator<T> for Iter<'a, T> {
impl<'a, T: Send> Iterator for Iter<'a, T> {
type Item = T;
fn next(&mut self) -> Option<T> { self.rx.recv().ok() }
}

View File

@@ -319,7 +319,9 @@ impl<'rx, T: Send> Drop for Handle<'rx, T> {
}
}
impl Iterator<*mut Handle<'static, ()>> for Packets {
impl Iterator for Packets {
type Item = *mut Handle<'static, ()>;
fn next(&mut self) -> Option<*mut Handle<'static, ()>> {
if self.cur.is_null() {
None