Browse Source

Fix Url::from_file_path to be a static method.

Simon Sapin 12 years ago
parent
commit
f1161aaaff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/url.rs

+ 1 - 1
src/url.rs

@@ -193,7 +193,7 @@ impl Url {
 
     // FIXME: Figure out what to do on Windows
     #[cfg(unix)]
-    pub fn from_file_path(&self, path: &Path) -> Result<Url, ()> {
+    pub fn from_file_path(path: &Path) -> Result<Url, ()> {
         let path = try!(encode_file_path(path));
         Ok(Url {
             scheme: "file".to_string(),