diff options
author | ShuiRuTian <[email protected]> | 2021-01-13 14:56:31 +0000 |
---|---|---|
committer | ShuiRuTian <[email protected]> | 2021-01-13 14:56:31 +0000 |
commit | 727a7827fd992e86a4c1fe547f27d2fa299d3099 (patch) | |
tree | c29a27445ba188ddf94d7365191f75fe6bbb7915 | |
parent | 76e65890163c9d6a4105e6c52143ae81f805ba82 (diff) |
fix windows test.
-rw-r--r-- | crates/rust-analyzer/tests/rust-analyzer/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/tests/rust-analyzer/main.rs b/crates/rust-analyzer/tests/rust-analyzer/main.rs index c4554e9d3..3d99c1f52 100644 --- a/crates/rust-analyzer/tests/rust-analyzer/main.rs +++ b/crates/rust-analyzer/tests/rust-analyzer/main.rs | |||
@@ -785,7 +785,7 @@ fn main() {} | |||
785 | "documentChanges": [ | 785 | "documentChanges": [ |
786 | { | 786 | { |
787 | "textDocument": { | 787 | "textDocument": { |
788 | "uri": format!("file://{}", tmp_dir_path.join("src").join("lib.rs").to_str().unwrap()), | 788 | "uri": format!("file://{}", tmp_dir_path.join("src").join("lib.rs").to_str().unwrap().to_string().replace("C:\\", "/c:/").replace("\\", "/")), |
789 | "version": null | 789 | "version": null |
790 | }, | 790 | }, |
791 | "edits": [ | 791 | "edits": [ |
@@ -846,7 +846,7 @@ fn main() {} | |||
846 | "documentChanges": [ | 846 | "documentChanges": [ |
847 | { | 847 | { |
848 | "textDocument": { | 848 | "textDocument": { |
849 | "uri": format!("file://{}", tmp_dir_path.join("src").join("lib.rs").to_str().unwrap()), | 849 | "uri": format!("file://{}", tmp_dir_path.join("src").join("lib.rs").to_str().unwrap().to_string().replace("C:\\", "/c:/").replace("\\", "/")), |
850 | "version": null | 850 | "version": null |
851 | }, | 851 | }, |
852 | "edits": [ | 852 | "edits": [ |