Skip to content

Commit 13be975

Browse files
committed
Udpate to rust master
1 parent 5a446d7 commit 13be975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ impl ToUrlPath for path::windows::Path {
936936
if !self.is_absolute() {
937937
return Err(())
938938
}
939-
if path::windows::prefix(self) != Some(path::windows::DiskPrefix) {
939+
if path::windows::prefix(self) != Some(path::windows::PathPrefix::DiskPrefix) {
940940
// FIXME: do something with UNC and other prefixes?
941941
return Err(())
942942
}
@@ -998,7 +998,7 @@ impl FromUrlPath for path::windows::Path {
998998
Some(path) => {
999999
debug_assert!(path.is_absolute(),
10001000
"to_file_path() failed to produce an absolute Path");
1001-
debug_assert!(path::windows::prefix(&path) == Some(path::windows::DiskPrefix),
1001+
debug_assert!(path::windows::prefix(&path) == Some(path::windows::PathPrefix::DiskPrefix),
10021002
"to_file_path() failed to produce a Path with a disk prefix");
10031003
Ok(path)
10041004
}

0 commit comments

Comments
 (0)