test: Mark receive_imf() as only for tests and "internals" feature (#6235)

`receive_imf() is only used in tests and the REPL, which enables the
"internals" feature. This PR marks it as such, so that it's clear not
only from the comment that this function is not used for anything else.
This commit is contained in:
Hocuri
2024-11-21 14:57:35 +01:00
committed by GitHub
parent e121fc1389
commit 95ac7647ac
2 changed files with 6 additions and 4 deletions

View File

@@ -244,10 +244,10 @@ async fn verify_sender_by_fingerprint(
/// What to do with a Secure-Join handshake message after it was handled.
///
/// This status is returned to [`receive_imf`] which will use it to decide what to do
/// This status is returned to [`receive_imf_inner`] which will use it to decide what to do
/// next with this incoming setup-contact/secure-join handshake message.
///
/// [`receive_imf`]: crate::receive_imf::receive_imf
/// [`receive_imf_inner`]: crate::receive_imf::receive_imf_inner
#[derive(Debug, PartialEq, Eq)]
pub(crate) enum HandshakeMessage {
/// The message has been fully handled and should be removed/delete.