@@ -410,7 +410,7 @@ impl GenericPath for PosixPath {
410410 None => None ,
411411 Some ( ref f) => {
412412 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 ( ) ) ,
414414 None => Some ( copy * f)
415415 }
416416 }
@@ -422,7 +422,7 @@ impl GenericPath for PosixPath {
422422 None => None ,
423423 Some ( ref f) => {
424424 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 ( ) ) ,
426426 _ => None
427427 }
428428 }
@@ -622,7 +622,7 @@ impl GenericPath for WindowsPath {
622622 None => None ,
623623 Some ( ref f) => {
624624 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 ( ) ) ,
626626 None => Some ( copy * f)
627627 }
628628 }
@@ -634,7 +634,7 @@ impl GenericPath for WindowsPath {
634634 None => None ,
635635 Some ( ref f) => {
636636 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 ( ) ) ,
638638 _ => None
639639 }
640640 }
@@ -842,8 +842,8 @@ pub mod windows {
842842 let mut i = 2;
843843 while i < s.len() {
844844 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();
847847 return Some((pre, rest));
848848 }
849849 i += 1;
@@ -860,9 +860,9 @@ pub mod windows {
860860 let rest = if s.len() == 2 {
861861 ~" "
862862 } else {
863- s. slice_DBG_BRWD ( 2 , s. len ( ) ) . to_owned ( )
863+ s. slice ( 2 , s. len ( ) ) . to_owned ( )
864864 } ;
865- return Some ( ( s. slice_DBG_BRWD ( 0 , 1 ) . to_owned ( ) , rest) ) ;
865+ return Some ( ( s. slice ( 0 , 1 ) . to_owned ( ) , rest) ) ;
866866 }
867867 None
868868 }
0 commit comments