std: fix fallout
This commit is contained in:
parent
6b116bedaf
commit
1971a24441
11 changed files with 93 additions and 37 deletions
|
|
@ -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() }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue