@@ -851,13 +851,13 @@ impl<'p, Cx: TypeCx> PatStack<'p, Cx> {
851
851
self . pats [ 0 ]
852
852
}
853
853
854
- fn iter < ' b > ( & ' b self ) -> impl Iterator < Item = & ' p DeconstructedPat < ' p , Cx > > + Captures < ' b > {
854
+ fn iter ( & self ) -> impl Iterator < Item = & ' p DeconstructedPat < ' p , Cx > > + Captures < ' _ > {
855
855
self . pats . iter ( ) . copied ( )
856
856
}
857
857
858
858
// Recursively expand the first or-pattern into its subpatterns. Only useful if the pattern is
859
859
// an or-pattern. Panics if `self` is empty.
860
- fn expand_or_pat < ' b > ( & ' b self ) -> impl Iterator < Item = PatStack < ' p , Cx > > + Captures < ' b > {
860
+ fn expand_or_pat ( & self ) -> impl Iterator < Item = PatStack < ' p , Cx > > + Captures < ' _ > {
861
861
self . head ( ) . flatten_or_pat ( ) . into_iter ( ) . map ( move |pat| {
862
862
let mut new = self . clone ( ) ;
863
863
new. pats [ 0 ] = pat;
@@ -926,13 +926,13 @@ impl<'p, Cx: TypeCx> MatrixRow<'p, Cx> {
926
926
self . pats . head ( )
927
927
}
928
928
929
- fn iter < ' b > ( & ' b self ) -> impl Iterator < Item = & ' p DeconstructedPat < ' p , Cx > > + Captures < ' b > {
929
+ fn iter ( & self ) -> impl Iterator < Item = & ' p DeconstructedPat < ' p , Cx > > + Captures < ' _ > {
930
930
self . pats . iter ( )
931
931
}
932
932
933
933
// Recursively expand the first or-pattern into its subpatterns. Only useful if the pattern is
934
934
// an or-pattern. Panics if `self` is empty.
935
- fn expand_or_pat < ' b > ( & ' b self ) -> impl Iterator < Item = MatrixRow < ' p , Cx > > + Captures < ' b > {
935
+ fn expand_or_pat ( & self ) -> impl Iterator < Item = MatrixRow < ' p , Cx > > + Captures < ' _ > {
936
936
self . pats . expand_or_pat ( ) . map ( |patstack| MatrixRow {
937
937
pats : patstack,
938
938
parent_row : self . parent_row ,
@@ -1041,21 +1041,21 @@ impl<'p, Cx: TypeCx> Matrix<'p, Cx> {
1041
1041
self . wildcard_row . len ( )
1042
1042
}
1043
1043
1044
- fn rows < ' b > (
1045
- & ' b self ,
1046
- ) -> impl Iterator < Item = & ' b MatrixRow < ' p , Cx > > + Clone + DoubleEndedIterator + ExactSizeIterator
1044
+ fn rows (
1045
+ & self ,
1046
+ ) -> impl Iterator < Item = & MatrixRow < ' p , Cx > > + Clone + DoubleEndedIterator + ExactSizeIterator
1047
1047
{
1048
1048
self . rows . iter ( )
1049
1049
}
1050
- fn rows_mut < ' b > (
1051
- & ' b mut self ,
1052
- ) -> impl Iterator < Item = & ' b mut MatrixRow < ' p , Cx > > + DoubleEndedIterator + ExactSizeIterator
1050
+ fn rows_mut (
1051
+ & mut self ,
1052
+ ) -> impl Iterator < Item = & mut MatrixRow < ' p , Cx > > + DoubleEndedIterator + ExactSizeIterator
1053
1053
{
1054
1054
self . rows . iter_mut ( )
1055
1055
}
1056
1056
1057
1057
/// Iterate over the first pattern of each row.
1058
- fn heads < ' b > ( & ' b self ) -> impl Iterator < Item = & ' b DeconstructedPat < ' p , Cx > > + Clone {
1058
+ fn heads ( & self ) -> impl Iterator < Item = & ' p DeconstructedPat < ' p , Cx > > + Clone + Captures < ' _ > {
1059
1059
self . rows ( ) . map ( |r| r. head ( ) )
1060
1060
}
1061
1061
0 commit comments