Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/vfs/src/vfs_path.rs')
-rw-r--r--crates/vfs/src/vfs_path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/vfs/src/vfs_path.rs b/crates/vfs/src/vfs_path.rs
index 7e2c787afc..eb55081c20 100644
--- a/crates/vfs/src/vfs_path.rs
+++ b/crates/vfs/src/vfs_path.rs
@@ -337,9 +337,9 @@ impl PartialEq<VfsPath> for AbsPath {
struct VirtualPath(String);
impl VirtualPath {
- /// Returns `true` if `other` is a prefix of `self` (as strings).
+ /// Returns `true` if `other` is a prefix of `self`.
fn starts_with(&self, other: &VirtualPath) -> bool {
- self.0.starts_with(&other.0)
+ <_ as AsRef<paths::Utf8Path>>::as_ref(&self.0).starts_with(&other.0)
}
fn strip_prefix(&self, base: &VirtualPath) -> Option<&RelPath> {