File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -87,15 +87,13 @@ impl<'a> Toolchain<'a> {
87
87
88
88
// Perform minimal validation; there should at least be a `bin/` that might
89
89
// contain things for us to run.
90
- if !path. join ( "bin" ) . is_dir ( ) {
90
+ if !dbg ! ( path. join( "bin" ) ) . is_dir ( ) {
91
91
return Err ( ErrorKind :: InvalidToolchainPath ( path. into ( ) ) . into ( ) ) ;
92
92
}
93
93
94
94
Ok ( Toolchain {
95
95
cfg,
96
- name : path
97
- . as_os_str ( )
98
- . to_str ( )
96
+ name : dbg ! ( path. to_str( ) )
99
97
. ok_or_else ( || ErrorKind :: InvalidToolchainPath ( path. clone ( ) . into ( ) ) ) ?
100
98
. to_owned ( ) ,
101
99
path,
Original file line number Diff line number Diff line change @@ -1562,11 +1562,14 @@ fn file_override_path_relative() {
1562
1562
for p in p1 {
1563
1563
relative_path. push ( p) ;
1564
1564
}
1565
- assert ! ( relative_path. is_relative( ) ) ;
1565
+ assert ! ( dbg! ( & relative_path) . is_relative( ) ) ;
1566
1566
1567
1567
raw:: write_file (
1568
1568
& toolchain_file,
1569
- & format ! ( "[toolchain]\n path='{}'" , relative_path. to_str( ) . unwrap( ) ) ,
1569
+ dbg ! ( & format!(
1570
+ "[toolchain]\n path='{}'" ,
1571
+ relative_path. to_str( ) . unwrap( )
1572
+ ) ) ,
1570
1573
)
1571
1574
. unwrap ( ) ;
1572
1575
You can’t perform that action at this time.
0 commit comments