فهرست منبع

Merge pull request #101 from jaxx/master

fix build on Windows
Simon Sapin 11 سال پیش
والد
کامیت
577c0990c4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -994,7 +994,7 @@ fn file_url_path_to_pathbuf(path: &[String]) -> Result<PathBuf, ()> {
         return Err(())
         return Err(())
     }
     }
     let mut string = prefix.to_string();
     let mut string = prefix.to_string();
-    for path_part in path[1..] {
+    for path_part in path.iter().skip(1) {
         string.push('\\');
         string.push('\\');
 
 
         // Currently non-unicode windows paths cannot be represented
         // Currently non-unicode windows paths cannot be represented