Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/paths/src/lib.rs')
| -rw-r--r-- | crates/paths/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/paths/src/lib.rs b/crates/paths/src/lib.rs index 885f071889..51c7959094 100644 --- a/crates/paths/src/lib.rs +++ b/crates/paths/src/lib.rs @@ -151,6 +151,10 @@ impl AbsPathBuf { pub fn push<P: AsRef<Utf8Path>>(&mut self, suffix: P) { self.0.push(suffix) } + + pub fn join(&self, path: impl AsRef<Utf8Path>) -> Self { + Self(self.0.join(path)) + } } impl fmt::Display for AbsPathBuf { |