Skip to content
Snippets Groups Projects
Commit 38e16da74aea authored by Georges Racinet's avatar Georges Racinet :squid:
Browse files

rust-pyo3-dirstate: status

This finally makes use of the latest `path` utilities.
As a side note, `paths_py_list` cannot use `PyHgPathRef` itself
because by calling `as_ref()` it would make the compiler believe
it returns code owner by the inner `map` closure.
Also, `status_path_py_list(py, &status_res.modified)?` can
probably be replaced by

```
PyList::new(status_res.modified.iter().map(|p| PyHgPathRef(p)))?
```

with (granted) little benefit, but it could spare us a new utility
each time there is a new collection type to return.
parent 8c11ec902e73
No related branches found
No related tags found
2 merge requests!1292Draft: 7.0rc preparation,!1233rust-pyo3: dirstate bindings
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment