@@ -1470,10 +1470,7 @@ fn file_override_path() {
14701470 let toolchain_file = config. current_dir ( ) . join ( "rust-toolchain.toml" ) ;
14711471 raw:: write_file (
14721472 & toolchain_file,
1473- & dbg ! ( format!(
1474- "[toolchain]\n path=\" {}\" " ,
1475- toolchain_path. to_str( ) . unwrap( )
1476- ) ) ,
1473+ & format ! ( "[toolchain]\n path='{}'" , toolchain_path. to_str( ) . unwrap( ) ) ,
14771474 )
14781475 . unwrap ( ) ;
14791476
@@ -1510,7 +1507,7 @@ fn proxy_override_path() {
15101507 let toolchain_file = config. current_dir ( ) . join ( "rust-toolchain.toml" ) ;
15111508 raw:: write_file (
15121509 & toolchain_file,
1513- & format ! ( "[toolchain]\n path=\" {} \" " , toolchain_path. to_str( ) . unwrap( ) ) ,
1510+ & format ! ( "[toolchain]\n path='{}' " , toolchain_path. to_str( ) . unwrap( ) ) ,
15141511 )
15151512 . unwrap ( ) ;
15161513
@@ -1546,9 +1543,9 @@ fn file_override_path_relative() {
15461543 . join ( "rust-toolchain.toml" ) ;
15471544
15481545 // Find shared prefix so we can determine a relative path
1549- let mut p1 = dbg ! ( & toolchain_path) . components ( ) . peekable ( ) ;
1550- let mut p2 = dbg ! ( & toolchain_file) . components ( ) . peekable ( ) ;
1551- while let ( Some ( p1p) , Some ( p2p) ) = ( dbg ! ( p1. peek( ) ) , dbg ! ( p2. peek( ) ) ) {
1546+ let mut p1 = toolchain_path. components ( ) . peekable ( ) ;
1547+ let mut p2 = toolchain_file. components ( ) . peekable ( ) ;
1548+ while let ( Some ( p1p) , Some ( p2p) ) = ( p1. peek ( ) , p2. peek ( ) ) {
15521549 if p1p == p2p {
15531550 let _ = p1. next ( ) ;
15541551 let _ = p2. next ( ) ;
@@ -1559,18 +1556,17 @@ fn file_override_path_relative() {
15591556 }
15601557 let mut relative_path = PathBuf :: new ( ) ;
15611558 // NOTE: We skip 1 since we don't need to .. across the .toml file at the end of the path
1562- for p in p2. skip ( 1 ) {
1563- dbg ! ( p) ;
1559+ for _ in p2. skip ( 1 ) {
15641560 relative_path. push ( ".." ) ;
15651561 }
15661562 for p in p1 {
1567- relative_path. push ( dbg ! ( p ) ) ;
1563+ relative_path. push ( p ) ;
15681564 }
1569- assert ! ( dbg! ( & relative_path) . is_relative( ) ) ;
1565+ assert ! ( relative_path. is_relative( ) ) ;
15701566
15711567 raw:: write_file (
15721568 & toolchain_file,
1573- & format ! ( "[toolchain]\n path=\" {} \" " , relative_path. to_str( ) . unwrap( ) ) ,
1569+ & format ! ( "[toolchain]\n path='{}' " , relative_path. to_str( ) . unwrap( ) ) ,
15741570 )
15751571 . unwrap ( ) ;
15761572
0 commit comments