mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 23:01:33 +00:00
fix: feature-gate symbols to resolve dead-code warning (#3175)
This commit is contained in:
@ -82,6 +82,11 @@ impl DecodingError {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(
|
||||
all(feature = "rsa", not(target_arch = "wasm32")),
|
||||
feature = "secp256k1",
|
||||
feature = "ecdsa"
|
||||
))]
|
||||
pub(crate) fn encoding_unsupported(key_type: &'static str) -> Self {
|
||||
Self {
|
||||
msg: format!("encoding {key_type} key to Protobuf is unsupported"),
|
||||
|
Reference in New Issue
Block a user