email-lib: add ignore attribute for complexity of WatchFn v1 APPLIED

Perma Alesheikh: 1
 add ignore attribute for complexity of WatchFn

 1 files changed, 5 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~soywod/pimalaya/patches/49382/mbox | git am -3
Learn more about email & git

[PATCH email-lib] add ignore attribute for complexity of WatchFn Export this patch

Ignore the complexity lint since the actual usage is not that complex.

Signed-off-by: Perma Alesheikh <me@prma.dev>
 email/src/watch/config.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/email/src/watch/config.rs b/email/src/watch/config.rs
index 4f124fc..9916dc4 100644
--- a/email/src/watch/config.rs
+++ b/email/src/watch/config.rs
@@ -47,6 +47,11 @@ fn eq(&self, other: &Self) -> bool {
/// an envelope.
pub struct WatchFn(
    // This function is essentially an asyc Fn with an empty anyhow result type.
    // So it should not create too much type complexity.
    // Added to that there is a new function that can take the complexity of
    // pinning and arcing away.
    Arc<dyn Fn(&Envelope) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>,