I'll start upgrading the codebase to modern async/await-based implementation,
which cannot be done incrementally. This is the last non-breaking patch to
prepare for the rewrite.
Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHGf87804825df5: rust-chg: indent process_message() to prepare mass rewrite to futures-0.3
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
rust/chg/src/runcommand.rs | ||
---|---|---|
143–167 | Not sure I understand the extra bracket here. |
Comment Actions
+ {
+ match msg {Not sure I understand the extra bracket here.
It's just for rustfmt to indent one more depth.
Comment Actions
Because you expect to add an async block or something that will make the diff harder to read, I suppose?
Comment Actions
Because you expect to add an async block or something that will make the diff harder to read, I suppose?
The match will be surrounded by a simple loop {}, which was previously
a state machine. And yes, reading the subsequent 10 patches would be painful
without indent-level adjustment.
Not sure I understand the extra bracket here.