File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ fn main() {
103
103
) ;
104
104
println ! ( "url:{}" , url) ;
105
105
let mut downloaded_bytes = Vec :: new ( ) ;
106
- let mut resp =
107
- reqwest :: blocking :: get ( & url ) . expect ( & format ! ( "fetched bitcoin core from {}" , url) ) ;
106
+ let mut resp = reqwest :: blocking :: get ( & url )
107
+ . unwrap_or_else ( |_| panic ! ( "fetched bitcoin core from {}" , url) ) ;
108
108
assert_eq ! ( resp. status( ) , 200 , "url {} didn't return 200" , url) ;
109
109
let _size = resp. copy_to ( & mut downloaded_bytes) . unwrap ( ) ;
110
110
@@ -136,7 +136,7 @@ fn main() {
136
136
for d in outpath. iter ( ) {
137
137
bitcoin_exe_home. push ( d) ;
138
138
}
139
- std:: fs:: create_dir_all ( & bitcoin_exe_home. parent ( ) . unwrap ( ) ) . unwrap ( ) ;
139
+ std:: fs:: create_dir_all ( bitcoin_exe_home. parent ( ) . unwrap ( ) ) . unwrap ( ) ;
140
140
println ! ( "{:?}" , bitcoin_exe_home) ;
141
141
let mut outfile = std:: fs:: File :: create ( & bitcoin_exe_home) . unwrap ( ) ;
142
142
io:: copy ( & mut file, & mut outfile) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ impl BitcoinD {
283
283
conf_args
284
284
) ;
285
285
let mut process = Command :: new ( exe. as_ref ( ) )
286
- . args ( & default_args)
286
+ . args ( default_args)
287
287
. args ( & p2p_args)
288
288
. args ( & conf_args)
289
289
. stdout ( stdout)
You can’t perform that action at this time.
0 commit comments