Skip to content

Commit cc51524

Browse files
fixes
1 parent 3120724 commit cc51524

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: crates/pgt_completions/src/providers/columns.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ mod tests {
208208
let has_column_in_first_four = |col: &'static str| {
209209
first_four
210210
.iter()
211-
.find(|compl_item| compl_item.label.as_str() == col)
212-
.is_some()
211+
.any(|compl_item| compl_item.label.as_str() == col)
213212
};
214213

215214
assert!(

Diff for: crates/pgt_completions/src/sanitization.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ mod tests {
275275
let input = "select * from private.";
276276

277277
// select * from private.| <-- on a dot
278-
assert!(cursor_on_a_dot(&input, TextSize::new(22)));
278+
assert!(cursor_on_a_dot(input, TextSize::new(22)));
279279

280280
// select * from private|. <-- before the dot
281-
assert!(!cursor_on_a_dot(&input, TextSize::new(21)));
281+
assert!(!cursor_on_a_dot(input, TextSize::new(21)));
282282

283283
// select * from private. | <-- too far off the dot
284-
assert!(!cursor_on_a_dot(&input, TextSize::new(23)));
284+
assert!(!cursor_on_a_dot(input, TextSize::new(23)));
285285
}
286286

287287
#[test]

0 commit comments

Comments
 (0)