Skip to content

Commit

Permalink
fix: url_to-file_path - remove host check (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Oct 9, 2024
1 parent 998a332 commit e5ccacf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ fn url_to_file_path_inner(url: &Url) -> Result<PathBuf, ()> {
#[cfg(any(unix, windows, target_os = "redox", target_os = "wasi"))]
fn url_to_file_path_real(url: &Url) -> Result<PathBuf, ()> {
if cfg!(windows) {
if url.host().is_some() {
return Err(());
}

match url.to_file_path() {
Ok(path) => Ok(path),
Err(()) => {
Expand Down

0 comments on commit e5ccacf

Please sign in to comment.