Skip to content

Commit 311a963

Browse files
committed
Bind to b instead of e
This error variant contains a byte value not an error type, bind to local variable `b` instead of `e` to make this explicit.
1 parent 9749dad commit 311a963

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
@@ -47,7 +47,7 @@ impl fmt::Display for Error {
4747
match *self {
4848
Error::Base58(ref e) => write!(f, "Key base58 error: {}", e),
4949
Error::Secp256k1(ref e) => write!(f, "Key secp256k1 error: {}", e),
50-
Error::InvalidKeyPrefix(ref e) => write!(f, "Key prefix invalid: {}", e),
50+
Error::InvalidKeyPrefix(ref b) => write!(f, "key prefix invalid: {}", b),
5151
Error::Hex(ref e) => write!(f, "Key hex decoding error: {}", e)
5252
}
5353
}

0 commit comments

Comments
 (0)