diff --git a/sdk/program/src/pubkey.rs b/sdk/program/src/pubkey.rs index eade06d999..adb1d0544c 100644 --- a/sdk/program/src/pubkey.rs +++ b/sdk/program/src/pubkey.rs @@ -68,13 +68,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"); } }