Skip to content

Commit b8a9b7e

Browse files
author
xand6r
committed
resolve clippy errors
1 parent fe55f3a commit b8a9b7e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ cargo test
7272

7373
## 🔒 License
7474

75-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.# ethereum-ecdsa-verifier
75+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn recover_address_from_eth_signature(
7676
// Hash the message using Ethereum's prefixed method
7777
let message_bytes: [u8; 32] = hash_eth_message(message)
7878
.try_into()
79-
.map_err(|e| format!("{:?}", e))?;
79+
.map_err(|e| format!("{e:?}"))?;
8080
let message_bytes_32 = libsecp256k1::Message::parse(&message_bytes);
8181

8282
// Recover the public key using secp256k1 recovery
@@ -89,7 +89,7 @@ fn recover_address_from_eth_signature(
8989
.serialize_compressed()
9090
.to_vec()
9191
.try_into()
92-
.map_err(|e| format!("{:?}", e))?,
92+
.map_err(|e| format!("{e:?}"))?,
9393
)
9494
}
9595

0 commit comments

Comments
 (0)