File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -936,7 +936,7 @@ impl ToUrlPath for path::windows::Path {
936
936
if !self . is_absolute ( ) {
937
937
return Err ( ( ) )
938
938
}
939
- if path:: windows:: prefix ( self ) != Some ( path:: windows:: DiskPrefix ) {
939
+ if path:: windows:: prefix ( self ) != Some ( path:: windows:: PathPrefix :: DiskPrefix ) {
940
940
// FIXME: do something with UNC and other prefixes?
941
941
return Err ( ( ) )
942
942
}
@@ -998,7 +998,7 @@ impl FromUrlPath for path::windows::Path {
998
998
Some ( path) => {
999
999
debug_assert ! ( path. is_absolute( ) ,
1000
1000
"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 ) ,
1002
1002
"to_file_path() failed to produce a Path with a disk prefix" ) ;
1003
1003
Ok ( path)
1004
1004
}
You can’t perform that action at this time.
0 commit comments