diff --git a/sdk/program/src/pubkey.rs b/sdk/program/src/pubkey.rs index ecda337304..ae6f592d79 100644 --- a/sdk/program/src/pubkey.rs +++ b/sdk/program/src/pubkey.rs @@ -75,13 +75,11 @@ pub enum ParsePubkeyError { WrongSize, #[error("Invalid Base58 string")] Invalid, - #[error("Infallible")] - Infallible, } impl From for ParsePubkeyError { fn from(_: Infallible) -> Self { - Self::Infallible + unreachable!("Infallible unihnabited"); } }