From 8c91a98a6dce04db3e7b20d93aff4a98552b5c9a Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Tue, 26 Sep 2023 22:03:50 -0700 Subject: [PATCH] clippy --- token/cli/src/encryption_keypair.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/token/cli/src/encryption_keypair.rs b/token/cli/src/encryption_keypair.rs index 3eb0389fc16..302c21520d9 100644 --- a/token/cli/src/encryption_keypair.rs +++ b/token/cli/src/encryption_keypair.rs @@ -19,9 +19,9 @@ pub(crate) enum ElGamalPubkeyOrNone { None, } -impl Into> for ElGamalPubkeyOrNone { - fn into(self) -> Option { - match self { +impl From for Option { + fn from(val: ElGamalPubkeyOrNone) -> Self { + match val { ElGamalPubkeyOrNone::ElGamalPubkey(pubkey) => Some(pubkey), ElGamalPubkeyOrNone::None => None, }