@@ -115,7 +115,7 @@ where
115115 // Add opening brace's ByteSpan
116116 collected_spans. push ( opening_brace_span) ;
117117 // Add T's collected ByteSpan
118- collected_spans. append ( & mut self . clone ( ) . into_inner ( ) . leaf_spans ( ) ) ;
118+ collected_spans. append ( & mut self . get ( ) . leaf_spans ( ) ) ;
119119 let mut closing_brace_span = ByteSpan :: from ( self . span ( ) ) ;
120120 closing_brace_span. start = closing_brace_span. end - 1 ;
121121 // Add closing brace's ByteSpan
@@ -135,7 +135,7 @@ where
135135 // Add opening paren's span
136136 collected_spans. push ( opening_paren_span) ;
137137 // Add T's collected ByteSpan
138- collected_spans. append ( & mut self . clone ( ) . into_inner ( ) . leaf_spans ( ) ) ;
138+ collected_spans. append ( & mut self . get ( ) . leaf_spans ( ) ) ;
139139 let mut closing_paren_span = ByteSpan :: from ( self . span ( ) ) ;
140140 closing_paren_span. start = closing_paren_span. end - 1 ;
141141 // Add closing paren's ByteSpan
@@ -155,7 +155,7 @@ where
155155 // Add opening bracket's span
156156 collected_spans. push ( opening_bracket_span) ;
157157 // Add T's collected ByteSpan
158- collected_spans. append ( & mut self . clone ( ) . into_inner ( ) . leaf_spans ( ) ) ;
158+ collected_spans. append ( & mut self . get ( ) . leaf_spans ( ) ) ;
159159 let mut closing_bracket_span = ByteSpan :: from ( self . span ( ) ) ;
160160 closing_bracket_span. start = closing_bracket_span. end - 1 ;
161161 // Add closing bracket's ByteSpan
0 commit comments