forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#13660) Follow up to pantsbuild#13646. The key when going from `&PyAny` to one of our custom `#[pyclass]` structs is to use `PyRef<>`, which is kind of like `RefCell<>`: https://pyo3.rs/v0.15.0/types.html#pyrefsometype-and-pyrefmutsometype Even though this isn't a huge deal for cloning a `PathBuf`, this will become more important when porting `MergeDigests` and friends to Rust so that we don't copy the `Vec<>`. [ci skip-build-wheels]
- Loading branch information
1 parent
f4d63a2
commit be75c94
Showing
2 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters