Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Path::strip_prefix instead of textual replacement of base path #35

Closed
Boscop opened this issue Jul 23, 2018 · 0 comments
Closed

Use Path::strip_prefix instead of textual replacement of base path #35

Boscop opened this issue Jul 23, 2018 · 0 comments

Comments

@Boscop
Copy link

Boscop commented Jul 23, 2018

It'd be more idiomatic to use Path::strip_prefix here:

https://github.com/pyros2097/rust-embed/blob/de355d14b4edd86a5f8b33503344772345fadacc/src/lib.rs#L54

pyrossh pushed a commit that referenced this issue Aug 24, 2021
pyrossh pushed a commit that referenced this issue Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant