File tree 2 files changed +4
-5
lines changed
crates/pgt_completions/src
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,7 @@ mod tests {
208
208
let has_column_in_first_four = |col : & ' static str | {
209
209
first_four
210
210
. iter ( )
211
- . find ( |compl_item| compl_item. label . as_str ( ) == col)
212
- . is_some ( )
211
+ . any ( |compl_item| compl_item. label . as_str ( ) == col)
213
212
} ;
214
213
215
214
assert ! (
Original file line number Diff line number Diff line change @@ -275,13 +275,13 @@ mod tests {
275
275
let input = "select * from private." ;
276
276
277
277
// 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 ) ) ) ;
279
279
280
280
// 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 ) ) ) ;
282
282
283
283
// 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 ) ) ) ;
285
285
}
286
286
287
287
#[ test]
You can’t perform that action at this time.
0 commit comments