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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/paths/src/lib.rs b/crates/paths/src/lib.rs index 7d7cf0220e..33c3f83db5 100644 --- a/crates/paths/src/lib.rs +++ b/crates/paths/src/lib.rs @@ -150,7 +150,7 @@ impl AbsPathBuf { /// * if `self` has a verbatim prefix (e.g. `\\?\C:\windows`) /// and `path` is not empty, the new path is normalized: all references /// to `.` and `..` are removed. - pub fn push(&mut self, suffix: &str) { + pub fn push<P: AsRef<Utf8Path>>(&mut self, suffix: P) { self.0.push(suffix) } } |