diff options
author | Emil Lauridsen <[email protected]> | 2020-02-07 11:35:36 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2020-02-07 11:35:36 +0000 |
commit | 137a878461662b7bf7f1acf3855b166c1c19fc2f (patch) | |
tree | 4ea08b3a1fbe53c21973b0508d33970eb270bf07 /crates/ra_lsp_server/src | |
parent | 5db7c8642beb1cd4c09359c3f3266d67557a30f9 (diff) |
to_string_lossy() -> display()
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index fcae37bb7..ceff82fda 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -638,10 +638,7 @@ fn on_check_task( | |||
638 | let file_id = match world_state.vfs.read().path2file(&path) { | 638 | let file_id = match world_state.vfs.read().path2file(&path) { |
639 | Some(file) => FileId(file.0), | 639 | Some(file) => FileId(file.0), |
640 | None => { | 640 | None => { |
641 | log::error!( | 641 | log::error!("File with cargo diagnostic not found in VFS: {}", path.display()); |
642 | "File with cargo diagnostic not found in VFS: {}", | ||
643 | path.to_string_lossy() | ||
644 | ); | ||
645 | return Ok(()); | 642 | return Ok(()); |
646 | } | 643 | } |
647 | }; | 644 | }; |