Skip to content

Commit 26bff17

Browse files
committed
chore: use clippy on genesis-bootstrapper
1 parent 97c6d3c commit 26bff17

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/run-tests-on-push-to-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
--package acropolis_module_chain_store \
3535
--package acropolis_module_consensus \
3636
--package acropolis_module_drdd_state \
37+
--package acropolis_module_genesis_bootstrapper \
3738
--package acropolis_module_mithril_snapshot_fetcher \
3839
--package acropolis_module_snapshot_bootstrapper \
3940
--package acropolis_module_spdd_state \

modules/genesis_bootstrapper/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async fn fetch_bytes(client: &reqwest::Client, url: &str) -> Result<Vec<u8>> {
1616
if let Ok(file) = File::open(&path) {
1717
if let Ok(map) = from_reader::<_, HashMap<String, String>>(file) {
1818
if let Some(path) = map.get(url.trim()) {
19-
if let Ok(bytes) = fs::read(&Path::new(path).to_path_buf()) {
19+
if let Ok(bytes) = fs::read(path) {
2020
return Ok(bytes);
2121
}
2222
}

modules/genesis_bootstrapper/src/genesis_bootstrapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl GenesisBootstrapper {
112112
}
113113
};
114114
info!("Reading genesis for '{network_name}'");
115-
let shelley_genesis_hash = hash_genesis_bytes(&shelley_genesis);
115+
let shelley_genesis_hash = hash_genesis_bytes(shelley_genesis);
116116

117117
// Read genesis data
118118
let byron_genesis: ByronGenesisFile = serde_json::from_slice(byron_genesis)

0 commit comments

Comments
 (0)