Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
bitcoind: Fix lint warnings in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharding committed Jun 6, 2024
1 parent 7bd9735 commit 8589624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bitcoind/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mod download {
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
fn download_filename() -> String { format!("bitcoin-{}-win64.zip", &VERSION) }

#[allow(clippy::lines_filter_map_ok)] // clippy doesn't like the `lines` call below and the suggested fix is incorrect.
fn get_expected_sha256(filename: &str) -> anyhow::Result<sha256::Hash> {
let sha256sums_filename = format!("sha256/bitcoin-core-{}-SHA256SUMS", &VERSION);
#[cfg(not(feature = "22_0"))]
Expand Down Expand Up @@ -143,7 +144,7 @@ mod download {
bitcoin_exe_home.push(d);
}
let parent = bitcoin_exe_home.parent().unwrap();
std::fs::create_dir_all(&parent)
std::fs::create_dir_all(parent)
.with_context(|| format!("cannot create dir {:?}", parent))?;
let mut outfile =
std::fs::File::create(&bitcoin_exe_home).with_context(|| {
Expand Down

0 comments on commit 8589624

Please sign in to comment.