mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Avoid testing impossible file paths on Windows.
This commit is contained in:
parent
e4cda55249
commit
04df5decee
2 changed files with 31 additions and 2 deletions
|
@ -868,7 +868,7 @@ pub fn parse_url_or_filename(cwd: &Path, input: &str) -> Result<Url, ()> {
|
|||
match Url::parse(input) {
|
||||
Ok(url) => Ok(url),
|
||||
Err(url::ParseError::RelativeUrlWithoutBase) => {
|
||||
Ok(Url::from_file_path(&*cwd.join(input)).unwrap())
|
||||
Url::from_file_path(&*cwd.join(input))
|
||||
}
|
||||
Err(_) => Err(()),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue