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
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
rust/chg/src/runcommand.rs | ||
---|---|---|
143 | 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.