@@ -39,7 +39,7 @@ pub struct LinkedList<T> {
39
39
head : Option < NonNull < Node < T > > > ,
40
40
tail : Option < NonNull < Node < T > > > ,
41
41
len : usize ,
42
- marker : PhantomData < Box < Node < T > > > ,
42
+ marker : PhantomData < T > ,
43
43
}
44
44
45
45
struct Node < T > {
@@ -60,7 +60,7 @@ pub struct Iter<'a, T: 'a> {
60
60
head : Option < NonNull < Node < T > > > ,
61
61
tail : Option < NonNull < Node < T > > > ,
62
62
len : usize ,
63
- marker : PhantomData < & ' a Node < T > > ,
63
+ marker : PhantomData < & ' a T > ,
64
64
}
65
65
66
66
#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
@@ -90,7 +90,7 @@ impl<T> Clone for Iter<'_, T> {
90
90
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
91
91
pub struct IterMut < ' a , T : ' a > {
92
92
// We do *not* exclusively own the entire list here, references to node's `element`
93
- // have been handed out by the iterator! So be careful when using this; the methods
93
+ // have been handed out by the iterator! So be careful when using this; the methods
94
94
// called must be aware that there can be aliasing pointers to `element`.
95
95
list : & ' a mut LinkedList < T > ,
96
96
head : Option < NonNull < Node < T > > > ,
0 commit comments