Repository navigation
Conversation
7ee93b4 to
b090da2
Compare
tmakatos
left a comment
There was a problem hiding this comment.
What's the collision problem? I prefer the fact that we don't have to explicitly a different type othen than Path, plus using PrefixedPath feels heavier from a mental point of view (and it's conceptually not much different than explicitly passing the root directory everywhere as an extra argument).
|
I find that both being Maybe we can add an extension trait to std |
b090da2 to
4872033
Compare
4872033 to
e6d5569
Compare
If that avoids having to introduce a new name I'd prefer it. |
e6d5569 to
8804062
Compare
Rename our custom Path to be PrefixedPath to prevent the collision with std's Path. Also move it to its own dedicated path module instead of the generic `util.rs`. Update all usages to use the new name and module. The new name, PrefixedPath, should improve clarity when converting to and from std's Path. Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
8804062 to
989aeb1
Compare
Rename our custom Path to be PrefixedPath to prevent the collision with
std's Path. Also move it to its own dedicated path module instead of the
generic
util.rs. Update all usages to use the new name and module.The new name, PrefixedPath, should improve clarity when converting to
and from std's Path.
Signed-off-by: Leonardo Forchini leonardo.forchini@nutanix.com
Stack created with GitHub Stacks CLI • Give Feedback 💬