From 61fb9e7e3bdf483a37de79a7b2211bc8f2a4fe35 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Thu, 28 Nov 2024 15:44:33 +0100 Subject: [PATCH] test: Revert `Mark receive_imf() as only for tests and "internals" feature` Unfortunately, this made compiling the `receive_emails` benchmark fail because it depends on `receive_imf()`, and I don't think there is a nice way to enable this function for the benchmark. --- src/receive_imf.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/receive_imf.rs b/src/receive_imf.rs index 9b722c702..fdef29efa 100644 --- a/src/receive_imf.rs +++ b/src/receive_imf.rs @@ -73,7 +73,6 @@ pub struct ReceivedMsg { /// /// This method returns errors on a failure to parse the mail or extract Message-ID. It's only used /// for tests and REPL tool, not actual message reception pipeline. -#[cfg(any(test, feature = "internals"))] pub async fn receive_imf( context: &Context, imf_raw: &[u8], @@ -106,7 +105,6 @@ pub async fn receive_imf( /// Emulates reception of a message from "INBOX". /// /// Only used for tests and REPL tool, not actual message reception pipeline. -#[cfg(any(test, feature = "internals"))] pub(crate) async fn receive_imf_from_inbox( context: &Context, rfc724_mid: &str,