File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ fn mk_filesearch(maybe_sysroot: option<fs::path>,
48
48
result:: ok ( p) { [ p] }
49
49
result:: err ( p) { [ ] }
50
50
}
51
- + [ fs:: connect ( fs:: connect ( self . sysroot , ".cargo" ) ,
52
- libdir ( ) ) ]
53
51
}
54
52
fn get_target_lib_path ( ) -> fs:: path {
55
53
make_target_lib_path ( self . sysroot , self . target_triple )
@@ -113,7 +111,9 @@ fn get_sysroot(maybe_sysroot: option<fs::path>) -> fs::path {
113
111
}
114
112
115
113
fn get_cargo_sysroot ( ) -> result:: t < fs:: path , str > {
116
- result:: ok ( fs:: connect ( get_default_sysroot ( ) , ".cargo" ) )
114
+ let path = [ get_default_sysroot ( ) , libdir ( ) , "cargo" ] ;
115
+ check vec:: is_not_empty ( path) ;
116
+ result:: ok ( fs:: connect_many ( path) )
117
117
}
118
118
119
119
fn get_cargo_root ( ) -> result:: t < fs:: path , str > {
You can’t perform that action at this time.
0 commit comments