Skip to content

Commit 85c9517

Browse files
whoops
1 parent 265c15d commit 85c9517

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/pgls_hover/src/hoverables/column.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
u>se std::fmt::Write;
1+
use std::fmt::Write;
22

33
use pgls_schema_cache::{Column, SchemaCache};
44
use pgls_treesitter::TreesitterContext;
@@ -74,14 +74,15 @@ impl ContextualPriority for Column {
7474
let mut score = 0.0;
7575

7676
// high score if we match the specific alias or table being referenced in the cursor context
77-
7877

7978
if let Some(table_or_alias) = ctx.tail_qualifier_sanitized() {
80-
let table = ctx.get_mentioned_table_for_alias(&table_or_alias).unwrap_or(&table_or_alias);
79+
let table = ctx
80+
.get_mentioned_table_for_alias(&table_or_alias)
81+
.unwrap_or(&table_or_alias);
8182

8283
if table == self.table_name.as_str() {
8384
score += 250.0;
84-
}
85+
}
8586

8687
if let Some(schema) = ctx.head_qualifier_sanitized() {
8788
if schema == self.schema_name.as_str() {

0 commit comments

Comments
 (0)