Skip to content

Commit

Permalink
Udpate to rust master
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Dec 22, 2014
1 parent 5a446d7 commit 13be975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 13be975

Please sign in to comment.