File tree 1 file changed +4
-7
lines changed
crates/pgt_completions/src/context
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -549,7 +549,8 @@ impl<'a> CompletionContext<'a> {
549
549
550
550
clauses_with_score. sort_by ( |( _, score_a) , ( _, score_b) | score_b. cmp ( score_a) ) ;
551
551
clauses_with_score
552
- . iter ( ) . find ( |( _, score) | * score > 0 )
552
+ . iter ( )
553
+ . find ( |( _, score) | * score > 0 )
553
554
. map ( |c| c. 0 . clone ( ) )
554
555
}
555
556
@@ -561,9 +562,7 @@ impl<'a> CompletionContext<'a> {
561
562
while let Some ( sib) = first_sibling. next_sibling ( ) {
562
563
match sib. kind ( ) {
563
564
"object_reference" => {
564
- if let Some ( NodeText :: Original ( txt) ) =
565
- self . get_ts_node_content ( & sib)
566
- {
565
+ if let Some ( NodeText :: Original ( txt) ) = self . get_ts_node_content ( & sib) {
567
566
let mut iter = txt. split ( '.' ) . rev ( ) ;
568
567
let table = iter. next ( ) . unwrap ( ) . to_string ( ) ;
569
568
let schema = iter. next ( ) . map ( |s| s. to_string ( ) ) ;
@@ -576,9 +575,7 @@ impl<'a> CompletionContext<'a> {
576
575
}
577
576
}
578
577
"column" => {
579
- if let Some ( NodeText :: Original ( txt) ) =
580
- self . get_ts_node_content ( & sib)
581
- {
578
+ if let Some ( NodeText :: Original ( txt) ) = self . get_ts_node_content ( & sib) {
582
579
let entry = MentionedColumn {
583
580
column : txt,
584
581
alias : None ,
You can’t perform that action at this time.
0 commit comments