@@ -124,7 +124,7 @@ pub enum RecursiveSimpleType<'input> {
124
124
}
125
125
126
126
#[ derive( Debug ) ]
127
- pub struct SimpleToplevel < ' ast , ' input : ' ast > {
127
+ pub struct SimpleToplevel < ' input > {
128
128
pub target_namespace : Option < & ' input str > ,
129
129
pub element_form_default_qualified : bool ,
130
130
pub attribute_form_default_qualified : bool ,
@@ -133,7 +133,6 @@ pub struct SimpleToplevel<'ast, 'input: 'ast> {
133
133
pub complex_types : HashMap < FullName < ' input > , RecursiveComplexType < ' input > > ,
134
134
pub groups : HashMap < FullName < ' input > , RecursiveComplexType < ' input > > ,
135
135
pub attribute_groups : HashMap < FullName < ' input > , Attrs < ' input > > ,
136
- _phantom : PhantomData < & ' ast ( ) > , // Sometimes I need 'ast when prototyping
137
136
}
138
137
139
138
fn hashmap_map < K : Hash + Eq , V1 , V2 , F > ( map : HashMap < K , V1 > , mut mapper : F ) -> HashMap < K , V2 >
@@ -143,8 +142,8 @@ where
143
142
map. into_iter ( ) . map ( |( k, v) | ( k, mapper ( v) ) ) . collect ( )
144
143
}
145
144
146
- impl < ' ast , ' input : ' ast > SimpleToplevel < ' ast , ' input > {
147
- pub fn new_from_toplevel ( toplevel : Toplevel < ' ast , ' input > ) -> SimpleToplevel < ' ast , ' input > {
145
+ impl < ' input > SimpleToplevel < ' input > {
146
+ pub fn new_from_toplevel < ' ast > ( toplevel : Toplevel < ' ast , ' input > ) -> SimpleToplevel < ' input > {
148
147
let Toplevel {
149
148
target_namespace,
150
149
element_form_default_qualified,
@@ -175,7 +174,6 @@ impl<'ast, 'input: 'ast> SimpleToplevel<'ast, 'input> {
175
174
attribute_groups : hashmap_map ( attribute_groups, |g| {
176
175
processor. process_toplevel_attribute_group ( g)
177
176
} ) ,
178
- _phantom : PhantomData :: default ( ) ,
179
177
}
180
178
}
181
179
}
0 commit comments