File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ impl GenericPathUnsafe for Path {
226
226
// path is assumed to have a prefix of Some(DiskPrefix)
227
227
match me. prefix {
228
228
Some ( DiskPrefix ) => me. repr [ 0 ] == path[ 0 ] . to_ascii ( ) . unwrap ( ) . to_upper ( ) . to_byte ( ) ,
229
- Some ( VerbatimDiskPrefix ) => me. repr [ 4 ] == path[ 0 ] . to_ascii ( ) . unwrap ( ) . to_upper ( ) . to_byte ( ) ,
229
+ Some ( VerbatimDiskPrefix ) =>
230
+ me. repr [ 4 ] == path[ 0 ] . to_ascii ( ) . unwrap ( ) . to_upper ( ) . to_byte ( ) ,
230
231
_ => false
231
232
}
232
233
}
@@ -655,11 +656,13 @@ impl Path {
655
656
match ( self . prefix , other. prefix ) {
656
657
( Some ( DiskPrefix ) , Some ( VerbatimDiskPrefix ) ) => {
657
658
self . is_absolute ( ) &&
658
- self . repr [ 0 ] . to_ascii ( ) . unwrap ( ) . eq_ignore_case ( other. repr [ 4 ] . to_ascii ( ) . unwrap ( ) )
659
+ self . repr [ 0 ] . to_ascii ( ) . unwrap ( ) .
660
+ eq_ignore_case ( other. repr [ 4 ] . to_ascii ( ) . unwrap ( ) )
659
661
}
660
662
( Some ( VerbatimDiskPrefix ) , Some ( DiskPrefix ) ) => {
661
663
other. is_absolute ( ) &&
662
- self . repr [ 4 ] . to_ascii ( ) . unwrap ( ) . eq_ignore_case ( other. repr [ 0 ] . to_ascii ( ) . unwrap ( ) )
664
+ self . repr [ 4 ] . to_ascii ( ) . unwrap ( ) .
665
+ eq_ignore_case ( other. repr [ 0 ] . to_ascii ( ) . unwrap ( ) )
663
666
}
664
667
( Some ( VerbatimDiskPrefix ) , Some ( VerbatimDiskPrefix ) ) => {
665
668
self . repr [ 4 ] . to_ascii ( ) . unwrap ( ) . eq_ignore_case ( other. repr [ 4 ] . to_ascii ( ) . unwrap ( ) )
You can’t perform that action at this time.
0 commit comments