@@ -353,7 +353,7 @@ impl<'a> StatementMapper<'a> for GetCompletionsMapper {
353
353
pub struct GetCompletionsFilter {
354
354
pub cursor_position : TextSize ,
355
355
}
356
- impl < ' a > StatementFilter < ' a > for GetCompletionsFilter {
356
+ impl StatementFilter < ' _ > for GetCompletionsFilter {
357
357
fn predicate ( & self , _id : & StatementId , range : & TextRange , content : & str ) -> bool {
358
358
let is_terminated_by_semi = content. chars ( ) . last ( ) . is_some_and ( |c| c == ';' ) ;
359
359
@@ -367,7 +367,7 @@ impl<'a> StatementFilter<'a> for GetCompletionsFilter {
367
367
}
368
368
369
369
pub struct NoFilter ;
370
- impl < ' a > StatementFilter < ' a > for NoFilter {
370
+ impl StatementFilter < ' _ > for NoFilter {
371
371
fn predicate ( & self , _id : & StatementId , _range : & TextRange , _content : & str ) -> bool {
372
372
true
373
373
}
@@ -383,7 +383,7 @@ impl CursorPositionFilter {
383
383
}
384
384
}
385
385
386
- impl < ' a > StatementFilter < ' a > for CursorPositionFilter {
386
+ impl StatementFilter < ' _ > for CursorPositionFilter {
387
387
fn predicate ( & self , _id : & StatementId , range : & TextRange , _content : & str ) -> bool {
388
388
range. contains ( self . pos )
389
389
}
@@ -399,7 +399,7 @@ impl IdFilter {
399
399
}
400
400
}
401
401
402
- impl < ' a > StatementFilter < ' a > for IdFilter {
402
+ impl StatementFilter < ' _ > for IdFilter {
403
403
fn predicate ( & self , id : & StatementId , _range : & TextRange , _content : & str ) -> bool {
404
404
* id == self . id
405
405
}
0 commit comments