fix: warning on unused variable

This commit is contained in:
Joonas Koivunen 2020-03-12 12:26:12 +02:00 committed by Joonas Koivunen
parent f3e0b8a890
commit abb6ef1e0a

View File

@ -160,7 +160,7 @@ pub fn load(config: File) -> Result<ipfs::Keypair, LoadingError> {
ipfs::Keypair::rsa_from_pkcs8(&mut pkcs8)
.map_err(|e| LoadingError::PrivateKeyLoadingFailed(Box::new(e)))?
}
keytype => return Err(LoadingError::UnsupportedPrivateKeyType(private_key.r#type)),
_keytype => return Err(LoadingError::UnsupportedPrivateKeyType(private_key.r#type)),
};
let peer_id = kp.public().into_peer_id().to_string();