mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Update crates/vfs/src/vfs_path.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
8f5e8e0a13
commit
51b1f7707b
@ -359,9 +359,7 @@ impl VirtualPath {
|
||||
}
|
||||
path = &path["../".len()..]
|
||||
}
|
||||
while path.starts_with("./") {
|
||||
path = &path["./".len()..]
|
||||
}
|
||||
path = path.trim_start_matches("./");
|
||||
res.0 = format!("{}/{}", res.0, path);
|
||||
Some(res)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user