This module will soon hold multiple files, this change is to make the
review process easier.
Details
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
rust/hg-cpython/src/dirstate/dirs_multiset.rs | ||
---|---|---|
34 | let skip_state = skip.map(|skip| skip.extract::<PyBytes>(py)?.data(py)[0] as i8); | |
35 | let dirs_map = if ... | |
68 | .map(py.None()) | |
rust/hg-cpython/src/dirstate/mod.rs | ||
119 | Should there be a check that this element exists? | |
178 | 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. |
Most of those will be taken care of in a follow-up patch, since they're cosmetic, plus this change just moves code around.