@@ -353,7 +353,7 @@ impl<'a> StatementMapper<'a> for GetCompletionsMapper {
353353pub struct GetCompletionsFilter {
354354 pub cursor_position : TextSize ,
355355}
356- impl < ' a > StatementFilter < ' a > for GetCompletionsFilter {
356+ impl StatementFilter < ' _ > for GetCompletionsFilter {
357357 fn predicate ( & self , _id : & StatementId , range : & TextRange , content : & str ) -> bool {
358358 let is_terminated_by_semi = content. chars ( ) . last ( ) . is_some_and ( |c| c == ';' ) ;
359359
@@ -367,7 +367,7 @@ impl<'a> StatementFilter<'a> for GetCompletionsFilter {
367367}
368368
369369pub struct NoFilter ;
370- impl < ' a > StatementFilter < ' a > for NoFilter {
370+ impl StatementFilter < ' _ > for NoFilter {
371371 fn predicate ( & self , _id : & StatementId , _range : & TextRange , _content : & str ) -> bool {
372372 true
373373 }
@@ -383,7 +383,7 @@ impl CursorPositionFilter {
383383 }
384384}
385385
386- impl < ' a > StatementFilter < ' a > for CursorPositionFilter {
386+ impl StatementFilter < ' _ > for CursorPositionFilter {
387387 fn predicate ( & self , _id : & StatementId , range : & TextRange , _content : & str ) -> bool {
388388 range. contains ( self . pos )
389389 }
@@ -399,7 +399,7 @@ impl IdFilter {
399399 }
400400}
401401
402- impl < ' a > StatementFilter < ' a > for IdFilter {
402+ impl StatementFilter < ' _ > for IdFilter {
403403 fn predicate ( & self , id : & StatementId , _range : & TextRange , _content : & str ) -> bool {
404404 * id == self . id
405405 }
0 commit comments