This module will soon hold multiple files, this change is to make the
review process easier.
Details
Details
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/hg-cpython/src/dirstate/dirs_multiset.rs | ||
---|---|---|
35 | let skip_state = skip.map(|skip| skip.extract::<PyBytes>(py)?.data(py)[0] as i8); | |
36 | let dirs_map = if ... | |
69 | .map(py.None()) | |
rust/hg-cpython/src/dirstate/mod.rs | ||
119 ↗ | (On Diff #15839) | Should there be a check that this element exists? |
178 ↗ | (On Diff #15839) | I think I would find it more readable as for (filename, dirstate) in .... If you want to unpack it I would do that in the first line of the loop body. However it might also be best just to use dirstate.state. I guess the downside there is you don't get a compile error if a new field is added. |
Comment Actions
Most of those will be taken care of in a follow-up patch, since they're cosmetic, plus this change just moves code around.