File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ use num::{ToPrimitive, Int};
68
68
use ops:: { Add , Deref , FnMut } ;
69
69
use option:: Option ;
70
70
use option:: Option :: { Some , None } ;
71
- use marker:: { Send , Sized , Sync } ;
71
+ use marker:: Sized ;
72
72
use usize;
73
73
74
74
/// An interface for dealing with "external iterators". These types of iterators
@@ -1783,10 +1783,6 @@ pub struct Peekable<I: Iterator> {
1783
1783
peeked : Option < I :: Item > ,
1784
1784
}
1785
1785
1786
- // FIXME: after #22828 being fixed, the following unsafe impl should be removed
1787
- unsafe impl < I : Iterator > Sync for Peekable < I > where I : Sync , I :: Item : Sync { }
1788
- unsafe impl < I : Iterator > Send for Peekable < I > where I : Send , I :: Item : Send { }
1789
-
1790
1786
impl < I : Iterator + Clone > Clone for Peekable < I > where I :: Item : Clone {
1791
1787
fn clone ( & self ) -> Peekable < I > {
1792
1788
Peekable {
You can’t perform that action at this time.
0 commit comments