summaryrefslogtreecommitdiff
path: root/ext/crypto/shared.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto/shared.rs')
-rw-r--r--ext/crypto/shared.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/crypto/shared.rs b/ext/crypto/shared.rs
index 2e4eabdaf..d2f7d53e8 100644
--- a/ext/crypto/shared.rs
+++ b/ext/crypto/shared.rs
@@ -89,7 +89,7 @@ impl RawKeyData {
match self {
RawKeyData::Public(data) => {
// public_key is a serialized EncodedPoint
- p256::EncodedPoint::from_bytes(&data)
+ p256::EncodedPoint::from_bytes(data)
.map_err(|_| type_error("expected valid public EC key"))
}
RawKeyData::Private(data) => {
@@ -106,7 +106,7 @@ impl RawKeyData {
match self {
RawKeyData::Public(data) => {
// public_key is a serialized EncodedPoint
- p384::EncodedPoint::from_bytes(&data)
+ p384::EncodedPoint::from_bytes(data)
.map_err(|_| type_error("expected valid public EC key"))
}
RawKeyData::Private(data) => {