@@ -52,7 +52,7 @@ pub(crate) enum NodeUnderCursor<'a> {
5252 } ,
5353}
5454
55- impl < ' a > NodeUnderCursor < ' a > {
55+ impl NodeUnderCursor < ' _ > {
5656 pub fn start_byte ( & self ) -> usize {
5757 match self {
5858 NodeUnderCursor :: TsNode ( node) => node. start_byte ( ) ,
@@ -184,7 +184,7 @@ impl<'a> CompletionContext<'a> {
184184 }
185185
186186 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 ) ;
188188
189189 self . node_under_cursor = Some ( NodeUnderCursor :: CustomNode {
190190 text : policy_context. node_text . into ( ) ,
@@ -658,7 +658,7 @@ mod tests {
658658 match node {
659659 NodeUnderCursor :: TsNode ( node) => {
660660 assert_eq ! (
661- ctx. get_ts_node_content( & node) ,
661+ ctx. get_ts_node_content( node) ,
662662 Some ( NodeText :: Original ( "from" . into( ) ) )
663663 ) ;
664664 }
@@ -688,7 +688,7 @@ mod tests {
688688 match node {
689689 NodeUnderCursor :: TsNode ( node) => {
690690 assert_eq ! (
691- ctx. get_ts_node_content( & node) ,
691+ ctx. get_ts_node_content( node) ,
692692 Some ( NodeText :: Original ( "" . into( ) ) )
693693 ) ;
694694 assert_eq ! ( ctx. wrapping_clause_type, None ) ;
@@ -721,7 +721,7 @@ mod tests {
721721 match node {
722722 NodeUnderCursor :: TsNode ( node) => {
723723 assert_eq ! (
724- ctx. get_ts_node_content( & node) ,
724+ ctx. get_ts_node_content( node) ,
725725 Some ( NodeText :: Original ( "fro" . into( ) ) )
726726 ) ;
727727 assert_eq ! ( ctx. wrapping_clause_type, Some ( WrappingClause :: Select ) ) ;
0 commit comments