Avoid lossy OsString conversions

This commit is contained in:
Laurențiu Nicola
2020-04-24 21:48:30 +03:00
parent 5d97667f8d
commit 58dde891f8
5 changed files with 14 additions and 9 deletions

View File

@@ -696,7 +696,7 @@ fn on_diagnostic_task(task: DiagnosticTask, msg_sender: &Sender<Message>, state:
let uri = match url_from_path_with_drive_lowercasing(&path) {
Ok(uri) => uri,
Err(err) => {
log::error!("Couldn't convert path to url ({}): {:?}", err, path.to_string_lossy());
log::error!("Couldn't convert path to url ({}): {}", err, path.display());
continue;
}
};