File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -433,15 +433,14 @@ impl fmt::Display for WindowSpec {
433
433
write ! ( f, "ORDER BY {}" , display_comma_separated( & self . order_by) ) ?;
434
434
}
435
435
if let Some ( window_frame) = & self . window_frame {
436
+ f. write_str ( delim) ?;
436
437
if let Some ( end_bound) = & window_frame. end_bound {
437
- f. write_str ( delim) ?;
438
438
write ! (
439
439
f,
440
440
"{} BETWEEN {} AND {}" ,
441
441
window_frame. units, window_frame. start_bound, end_bound
442
442
) ?;
443
443
} else {
444
- f. write_str ( delim) ?;
445
444
write ! ( f, "{} {}" , window_frame. units, window_frame. start_bound) ?;
446
445
}
447
446
}
Original file line number Diff line number Diff line change @@ -2772,6 +2772,7 @@ impl<'a> Parser<'a> {
2772
2772
// followed by some joins or (B) another level of nesting.
2773
2773
let mut table_and_joins = self . parse_table_and_joins ( ) ?;
2774
2774
2775
+ #[ allow( clippy:: if_same_then_else) ]
2775
2776
if !table_and_joins. joins . is_empty ( ) {
2776
2777
self . expect_token ( & Token :: RParen ) ?;
2777
2778
Ok ( TableFactor :: NestedJoin ( Box :: new ( table_and_joins) ) ) // (A)
You can’t perform that action at this time.
0 commit comments