From ae4eded0fb5c2efa4d326787ded618745b7017bb Mon Sep 17 00:00:00 2001 From: Ivan Nejgebauer Date: Thu, 15 Feb 2024 00:52:23 +0100 Subject: [PATCH] Silence nightly warning Probably due to rust-lang/rust#118297, our SaslCreds tuple struct now generates a warning. It can be silenced by making the struct public, but it really doesn't need to be, so dead code will be allowd at this point. The warning will presumably end up in stable Rust in a couple of releases. --- src/ldap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ldap.rs b/src/ldap.rs index 741077f..36e1956 100644 --- a/src/ldap.rs +++ b/src/ldap.rs @@ -25,6 +25,7 @@ use tokio::sync::{mpsc, oneshot}; use tokio::time; /// SASL bind exchange wrapper. +#[allow(dead_code)] #[derive(Clone, Debug)] pub(crate) struct SaslCreds(pub Option>);