Skip to content

Commit 58767e3

Browse files
committed
Remove unnecessary explicit type annotation
The compiler can infer this type, no need for an explicit type annotation.
1 parent 628458d commit 58767e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl PublicKey {
183183

184184
/// Deserialize a public key from a slice
185185
pub fn from_slice(data: &[u8]) -> Result<PublicKey, Error> {
186-
let compressed: bool = match data.len() {
186+
let compressed = match data.len() {
187187
33 => true,
188188
65 => false,
189189
len => {

0 commit comments

Comments
 (0)