File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ where
226226 LexerTypesT :: StorageT : Debug + Eq + Hash + ToTokens ,
227227 usize : num_traits:: AsPrimitive < LexerTypesT :: StorageT > ,
228228{
229- lrpar_config : Option < Box < dyn Fn ( CTParserBuilder < LexerTypesT > ) -> CTParserBuilder < LexerTypesT > > > ,
229+ lrpar_config :
230+ Option < Box < dyn Fn ( CTParserBuilder < LexerTypesT > ) -> CTParserBuilder < LexerTypesT > + ' a > > ,
230231 lexer_path : Option < PathBuf > ,
231232 output_path : Option < PathBuf > ,
232233 lexerkind : Option < LexerKind > ,
@@ -313,9 +314,9 @@ where
313314 /// .lexer_in_src_dir("calc.l")?
314315 /// .build()?;
315316 /// ```
316- pub fn lrpar_config < F > ( mut self , config_func : F ) -> Self
317+ pub fn lrpar_config < F : ' a > ( mut self , config_func : F ) -> Self
317318 where
318- F : ' static + Fn ( CTParserBuilder < LexerTypesT > ) -> CTParserBuilder < LexerTypesT > ,
319+ F : Fn ( CTParserBuilder < LexerTypesT > ) -> CTParserBuilder < LexerTypesT > ,
319320 {
320321 self . lrpar_config = Some ( Box :: new ( config_func) ) ;
321322 self
You can’t perform that action at this time.
0 commit comments