@@ -410,7 +410,7 @@ impl GenericPath for PosixPath {
410
410
None => None ,
411
411
Some ( ref f) => {
412
412
match str:: rfind_char ( * f, '.' ) {
413
- Some ( p) => Some ( f. slice_DBG_BRWD ( 0 , p) . to_owned ( ) ) ,
413
+ Some ( p) => Some ( f. slice ( 0 , p) . to_owned ( ) ) ,
414
414
None => Some ( copy * f)
415
415
}
416
416
}
@@ -422,7 +422,7 @@ impl GenericPath for PosixPath {
422
422
None => None ,
423
423
Some ( ref f) => {
424
424
match str:: rfind_char ( * f, '.' ) {
425
- Some ( p) if p < f. len ( ) => Some ( f. slice_DBG_BRWD ( p, f. len ( ) ) . to_owned ( ) ) ,
425
+ Some ( p) if p < f. len ( ) => Some ( f. slice ( p, f. len ( ) ) . to_owned ( ) ) ,
426
426
_ => None
427
427
}
428
428
}
@@ -622,7 +622,7 @@ impl GenericPath for WindowsPath {
622
622
None => None ,
623
623
Some ( ref f) => {
624
624
match str:: rfind_char ( * f, '.' ) {
625
- Some ( p) => Some ( f. slice_DBG_BRWD ( 0 , p) . to_owned ( ) ) ,
625
+ Some ( p) => Some ( f. slice ( 0 , p) . to_owned ( ) ) ,
626
626
None => Some ( copy * f)
627
627
}
628
628
}
@@ -634,7 +634,7 @@ impl GenericPath for WindowsPath {
634
634
None => None ,
635
635
Some ( ref f) => {
636
636
match str:: rfind_char ( * f, '.' ) {
637
- Some ( p) if p < f. len ( ) => Some ( f. slice_DBG_BRWD ( p, f. len ( ) ) . to_owned ( ) ) ,
637
+ Some ( p) if p < f. len ( ) => Some ( f. slice ( p, f. len ( ) ) . to_owned ( ) ) ,
638
638
_ => None
639
639
}
640
640
}
@@ -842,8 +842,8 @@ pub mod windows {
842
842
let mut i = 2;
843
843
while i < s.len() {
844
844
if is_sep(s[i]) {
845
- let pre = s.slice_DBG_BRWD (2, i).to_owned();
846
- let mut rest = s.slice_DBG_BRWD (i, s.len()).to_owned();
845
+ let pre = s.slice (2, i).to_owned();
846
+ let mut rest = s.slice (i, s.len()).to_owned();
847
847
return Some((pre, rest));
848
848
}
849
849
i += 1;
@@ -860,9 +860,9 @@ pub mod windows {
860
860
let rest = if s.len() == 2 {
861
861
~" "
862
862
} else {
863
- s. slice_DBG_BRWD ( 2 , s. len ( ) ) . to_owned ( )
863
+ s. slice ( 2 , s. len ( ) ) . to_owned ( )
864
864
} ;
865
- return Some ( ( s. slice_DBG_BRWD ( 0 , 1 ) . to_owned ( ) , rest) ) ;
865
+ return Some ( ( s. slice ( 0 , 1 ) . to_owned ( ) , rest) ) ;
866
866
}
867
867
None
868
868
}
0 commit comments