Skip to content

Commit 4324377

Browse files
minor changes
1 parent 6365f80 commit 4324377

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/pgls_diagnostics/src/serde.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ impl From<super::Location<'_>> for Location {
164164
#[serde(rename_all = "camelCase")]
165165
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
166166
#[cfg_attr(test, derive(Eq, PartialEq))]
167-
168167
struct Advices {
169168
advices: Vec<Advice>,
170169
}

crates/pgls_hover/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ pub fn on_hover(params: OnHoverParams) -> Vec<String> {
8383
_ => vec![],
8484
},
8585

86-
HoveredNode::Function(node_identification) => match node_identification {
87-
(maybe_schema, function_name) => params
86+
HoveredNode::Function(node_identification) => {
87+
let (maybe_schema, function_name) = node_identification;
88+
params
8889
.schema_cache
8990
.find_functions(&function_name, maybe_schema.as_deref())
9091
.into_iter()
9192
.map(Hoverable::from)
92-
.collect(),
93-
},
93+
.collect()
94+
}
9495

9596
HoveredNode::Role(role_name) => params
9697
.schema_cache

0 commit comments

Comments
 (0)