@@ -52,7 +52,7 @@ pub(crate) enum NodeUnderCursor<'a> {
52
52
} ,
53
53
}
54
54
55
- impl < ' a > NodeUnderCursor < ' a > {
55
+ impl NodeUnderCursor < ' _ > {
56
56
pub fn start_byte ( & self ) -> usize {
57
57
match self {
58
58
NodeUnderCursor :: TsNode ( node) => node. start_byte ( ) ,
@@ -184,7 +184,7 @@ impl<'a> CompletionContext<'a> {
184
184
}
185
185
186
186
fn gather_policy_context ( & mut self ) {
187
- let policy_context = PolicyParser :: get_context ( & self . text , self . position ) ;
187
+ let policy_context = PolicyParser :: get_context ( self . text , self . position ) ;
188
188
189
189
self . node_under_cursor = Some ( NodeUnderCursor :: CustomNode {
190
190
text : policy_context. node_text . into ( ) ,
@@ -658,7 +658,7 @@ mod tests {
658
658
match node {
659
659
NodeUnderCursor :: TsNode ( node) => {
660
660
assert_eq ! (
661
- ctx. get_ts_node_content( & node) ,
661
+ ctx. get_ts_node_content( node) ,
662
662
Some ( NodeText :: Original ( "from" . into( ) ) )
663
663
) ;
664
664
}
@@ -688,7 +688,7 @@ mod tests {
688
688
match node {
689
689
NodeUnderCursor :: TsNode ( node) => {
690
690
assert_eq ! (
691
- ctx. get_ts_node_content( & node) ,
691
+ ctx. get_ts_node_content( node) ,
692
692
Some ( NodeText :: Original ( "" . into( ) ) )
693
693
) ;
694
694
assert_eq ! ( ctx. wrapping_clause_type, None ) ;
@@ -721,7 +721,7 @@ mod tests {
721
721
match node {
722
722
NodeUnderCursor :: TsNode ( node) => {
723
723
assert_eq ! (
724
- ctx. get_ts_node_content( & node) ,
724
+ ctx. get_ts_node_content( node) ,
725
725
Some ( NodeText :: Original ( "fro" . into( ) ) )
726
726
) ;
727
727
assert_eq ! ( ctx. wrapping_clause_type, Some ( WrappingClause :: Select ) ) ;
0 commit comments