Skip to content

Commit 7c7549c

Browse files
no more spaces
1 parent 0cf105e commit 7c7549c

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

crates/pgt_hover/src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub fn on_hover(params: OnHoverParams) -> Vec<String> {
4848
.map(Hoverable::from)
4949
.collect(),
5050

51-
hovered_node::NodeIdentification::SchemaAndTableAndName(_) => vec![],
51+
_ => vec![],
5252
},
5353

5454
HoveredNode::Column(node_identification) => match node_identification {
@@ -74,7 +74,7 @@ pub fn on_hover(params: OnHoverParams) -> Vec<String> {
7474
.collect()
7575
}
7676

77-
hovered_node::NodeIdentification::SchemaAndTableAndName(_) => vec![],
77+
_ => vec![],
7878
},
7979

8080
HoveredNode::Function(node_identification) => match node_identification {
@@ -92,7 +92,7 @@ pub fn on_hover(params: OnHoverParams) -> Vec<String> {
9292
.map(Hoverable::from)
9393
.collect(),
9494

95-
hovered_node::NodeIdentification::SchemaAndTableAndName(_) => vec![],
95+
_ => vec![],
9696
},
9797

9898
HoveredNode::Role(node_identification) => match node_identification {
@@ -103,8 +103,7 @@ pub fn on_hover(params: OnHoverParams) -> Vec<String> {
103103
.map(Hoverable::from)
104104
.collect(),
105105

106-
hovered_node::NodeIdentification::SchemaAndName(_) => vec![],
107-
hovered_node::NodeIdentification::SchemaAndTableAndName(_) => vec![],
106+
_ => vec![],
108107
},
109108

110109
HoveredNode::Schema(node_identification) => match node_identification {

crates/pgt_typecheck/src/typed_identifier.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ mod tests {
309309
assert_eq!(
310310
replacement.text(),
311311
// the numeric parameters are filled with 0;
312-
"select 0 + 0 + 0 + 0 + 0 + 'critical'"
312+
"select 0 + 0 + 0 + 0 + 0 + 'critical'"
313313
);
314314
}
315315

@@ -358,8 +358,7 @@ mod tests {
358358

359359
assert_eq!(
360360
replacement.text(),
361-
// two spaces at the end because mail is longer than ''
362-
r#"select id from auth.users where email_change_confirm_status = '00000000-0000-0000-0000-000000000000' and email = '' ;"#
361+
r#"select id from auth.users where email_change_confirm_status = '00000000-0000-0000-0000-000000000000' and email = '';"#
363362
);
364363
}
365364
}

0 commit comments

Comments
 (0)