mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore: apply some style suggestions (#7307)
This commit is contained in:
@@ -37,7 +37,9 @@ pub fn get_secret_key(secret_key_path: &Path) -> Result<SecretKey, SecretKeyErro
|
||||
match exists {
|
||||
Ok(true) => {
|
||||
let contents = fs::read_to_string(secret_key_path)?;
|
||||
Ok((contents.as_str().parse::<SecretKey>())
|
||||
Ok(contents
|
||||
.as_str()
|
||||
.parse::<SecretKey>()
|
||||
.map_err(SecretKeyError::SecretKeyDecodeError)?)
|
||||
}
|
||||
Ok(false) => {
|
||||
|
||||
Reference in New Issue
Block a user