Skip to content

Commit 137a878

Browse files
committed
to_string_lossy() -> display()
1 parent 5db7c86 commit 137a878

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/ra_lsp_server/src/main_loop.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,7 @@ fn on_check_task(
638638
let file_id = match world_state.vfs.read().path2file(&path) {
639639
Some(file) => FileId(file.0),
640640
None => {
641-
log::error!(
642-
"File with cargo diagnostic not found in VFS: {}",
643-
path.to_string_lossy()
644-
);
641+
log::error!("File with cargo diagnostic not found in VFS: {}", path.display());
645642
return Ok(());
646643
}
647644
};

0 commit comments

Comments
 (0)