Skip to content

Commit a77907d

Browse files
committed
Remove unnecessary explicit type annotation
The compiler can infer this type, no need for an explicit type annotation.
1 parent 71cf00a commit a77907d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)