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, }