Ver Fonte

Merge pull request #64 from alexcrichton/update

Udpate to rust master
Simon Sapin há 11 anos atrás
pai
commit
70cd2a7085
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -936,7 +936,7 @@ impl ToUrlPath for path::windows::Path {
         if !self.is_absolute() {
             return Err(())
         }
-        if path::windows::prefix(self) != Some(path::windows::DiskPrefix) {
+        if path::windows::prefix(self) != Some(path::windows::PathPrefix::DiskPrefix) {
             // FIXME: do something with UNC and other prefixes?
             return Err(())
         }
@@ -998,7 +998,7 @@ impl FromUrlPath for path::windows::Path {
             Some(path) => {
                 debug_assert!(path.is_absolute(),
                               "to_file_path() failed to produce an absolute Path");
-                debug_assert!(path::windows::prefix(&path) == Some(path::windows::DiskPrefix),
+                debug_assert!(path::windows::prefix(&path) == Some(path::windows::PathPrefix::DiskPrefix),
                               "to_file_path() failed to produce a Path with a disk prefix");
                 Ok(path)
             }