Skip to content

Commit

Permalink
fix(sidecar): remove ignore clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 18, 2024
1 parent e919dc2 commit a1d6e8b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bolt-sidecar/src/signer/keystore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
fmt::Debug,
fs::{self, DirEntry, ReadDir},
io,
path::PathBuf,
path::{Path, PathBuf},
};

use alloy::rpc::types::beacon::constants::BLS_PUBLIC_KEY_BYTES_LEN;
Expand Down Expand Up @@ -65,10 +65,9 @@ impl KeystoreSigner {
Ok(Self { keypairs, chain })
}

#[allow(clippy::ptr_arg)]
pub fn from_secrets_directory(
keys_path: &PathBuf,
secrets_path: &PathBuf,
secrets_path: &Path,
chain: ChainConfig,
) -> SignerResult<Self> {
let keystores_paths = find_json_keystores(keys_path)?;
Expand All @@ -81,7 +80,7 @@ impl KeystoreSigner {

let pubkey = format!("0x{}", keystore.pubkey());

let mut secret_path = secrets_path.clone();
let mut secret_path = secrets_path.to_path_buf();
secret_path.push(pubkey);

let password = fs::read_to_string(secret_path)
Expand Down

0 comments on commit a1d6e8b

Please sign in to comment.