mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Untry
This commit is contained in:
parent
7af5a7fd54
commit
316cd35767
34 changed files with 261 additions and 264 deletions
|
@ -150,7 +150,7 @@ impl ServoUrl {
|
|||
}
|
||||
|
||||
pub fn from_file_path<P: AsRef<Path>>(path: P) -> Result<Self, ()> {
|
||||
Ok(Self::from_url(try!(Url::from_file_path(path))))
|
||||
Ok(Self::from_url(Url::from_file_path(path)?))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue