mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: make it easier to isolate IO
This commit is contained in:
parent
a2f83c956e
commit
9318c643f1
8 changed files with 58 additions and 35 deletions
|
@ -121,6 +121,7 @@ impl VfsPath {
|
|||
#[cfg(windows)]
|
||||
{
|
||||
use windows_paths::Encode;
|
||||
let path: &std::path::Path = path.as_ref();
|
||||
let components = path.components();
|
||||
let mut add_sep = false;
|
||||
for component in components {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue