chore(pubkey): remove dead code (#18161)

(cherry picked from commit 755b7c7aee)

Co-authored-by: hrls <viktor.kharitonovich@gmail.com>
This commit is contained in:
mergify[bot]
2021-06-23 03:12:30 +00:00
committed by GitHub
parent 57baf7f79b
commit 86ff6f82f8

View File

@ -75,13 +75,11 @@ pub enum ParsePubkeyError {
WrongSize,
#[error("Invalid Base58 string")]
Invalid,
#[error("Infallible")]
Infallible,
}
impl From<Infallible> for ParsePubkeyError {
fn from(_: Infallible) -> Self {
Self::Infallible
unreachable!("Infallible unihnabited");
}
}