Skip to content

Commit e765567

Browse files
committed
clippy fixes
1 parent e080d96 commit e765567

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ fn main() {
103103
);
104104
println!("url:{}", url);
105105
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));
108108
assert_eq!(resp.status(), 200, "url {} didn't return 200", url);
109109
let _size = resp.copy_to(&mut downloaded_bytes).unwrap();
110110

@@ -136,7 +136,7 @@ fn main() {
136136
for d in outpath.iter() {
137137
bitcoin_exe_home.push(d);
138138
}
139-
std::fs::create_dir_all(&bitcoin_exe_home.parent().unwrap()).unwrap();
139+
std::fs::create_dir_all(bitcoin_exe_home.parent().unwrap()).unwrap();
140140
println!("{:?}", bitcoin_exe_home);
141141
let mut outfile = std::fs::File::create(&bitcoin_exe_home).unwrap();
142142
io::copy(&mut file, &mut outfile).unwrap();

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl BitcoinD {
283283
conf_args
284284
);
285285
let mut process = Command::new(exe.as_ref())
286-
.args(&default_args)
286+
.args(default_args)
287287
.args(&p2p_args)
288288
.args(&conf_args)
289289
.stdout(stdout)

0 commit comments

Comments
 (0)