-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(rustfmt): format let-chains and let-else #9409
Conversation
haha |
format let-chains first, |
Codecov Report
@@ Coverage Diff @@
## main #9409 +/- ##
==========================================
- Coverage 70.73% 70.73% -0.01%
==========================================
Files 1233 1233
Lines 206503 206688 +185
==========================================
+ Hits 146079 146198 +119
- Misses 60424 60490 +66
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
let new_left = if let Some(project) = left.as_logical_project() | ||
&& left_input_index_on_condition | ||
.iter() | ||
.all(|index| project.exprs()[*index].as_input_ref().is_some()) | ||
&& join_type != JoinType::RightAnti | ||
&& join_type != JoinType::RightSemi | ||
&& join_type != JoinType::RightOuter | ||
&& join_type != JoinType::FullOuter | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow 😲 Is this our largest let chain?
if let Some(hop) = left.as_logical_hop_window() | ||
&& left_input_index_on_condition.iter().all(|&index| { | ||
hop.output_window_start_col_idx() | ||
.map_or(true, |v| index != v) | ||
&& hop.output_window_end_col_idx().map_or(true, |v| index != v) | ||
}) | ||
&& join_type != JoinType::RightAnti | ||
&& join_type != JoinType::RightSemi | ||
&& join_type != JoinType::RightOuter | ||
&& join_type != JoinType::FullOuter | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this seems larger 🥵
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 😄
Should I wait for the holiday to merge it? 😄 |
39dbc3b
to
9f114c9
Compare
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Cherry-pick and test rust-lang/rustfmt#5203 and rust-lang/rustfmt#5690
Use this branch rust-lang/rustfmt@master...xxchan:rustfmt:xxchan/cherry
install
invoke
Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note