From 0b3a56c3c4066a363212bb74b01ac88808b2a623 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 23 Feb 2024 14:45:42 +0000 Subject: [PATCH] api: make store_self_keypair private It is not useful as public API because input argument types are not public. Use `imex` instead. --- src/key.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/key.rs b/src/key.rs index eb1bfb49a..00ab6ca96 100644 --- a/src/key.rs +++ b/src/key.rs @@ -255,7 +255,7 @@ pub(crate) async fn load_keypair( /// Use of a key pair for encryption or decryption. /// -/// This is used by [store_self_keypair] to know what kind of key is +/// This is used by `store_self_keypair` to know what kind of key is /// being saved. #[derive(Debug, Clone, Eq, PartialEq)] pub enum KeyPairUse { @@ -277,7 +277,7 @@ pub enum KeyPairUse { /// same key again overwrites it. /// /// [Config::ConfiguredAddr]: crate::config::Config::ConfiguredAddr -pub async fn store_self_keypair( +pub(crate) async fn store_self_keypair( context: &Context, keypair: &KeyPair, default: KeyPairUse,