diff options
Diffstat (limited to 'components/url/lib.rs')
-rw-r--r-- | components/url/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/url/lib.rs b/components/url/lib.rs index 98a88bb1cf6..b862e312bc2 100644 --- a/components/url/lib.rs +++ b/components/url/lib.rs @@ -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)?)) } } |