improve import cycle diagnostic (very cool now) and improve some code boundaries

This commit is contained in:
Noah Santschi-Cooney 2023-03-11 21:29:31 +00:00
parent b604140abc
commit ead5486374
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
9 changed files with 334 additions and 205 deletions

View file

@ -92,6 +92,12 @@ impl Display for NormalizedPathBuf {
}
}
impl From<NormalizedPathBuf> for Url {
fn from(val: NormalizedPathBuf) -> Self {
Url::from_file_path(val).unwrap()
}
}
impl From<Url> for NormalizedPathBuf {
#[cfg(target_family = "windows")]
fn from(u: Url) -> Self {