Path::join does the right thing if its argument is absolute.
Details
Details
- Reviewers
Alphare pulkit - Group Reviewers
hg-reviewers - Commits
- rHG39128182f04e: rust: Remove unnecessary check for absolute path before joining
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
rust/hg-core/src/config/layer.rs | ||
---|---|---|
100 | I think we should always try to use expect instead of unwrap unless it's *really* repetitive or obvious, just as a best practice. |
I think we should always try to use expect instead of unwrap unless it's *really* repetitive or obvious, just as a best practice.