Clippy fixes

This commit is contained in:
mdecimus
2024-12-01 20:13:06 +13:00
parent 4f02e4c96f
commit 03d9dabed3
27 changed files with 115 additions and 119 deletions

View File

@@ -744,7 +744,7 @@ impl<'x> HttpContext<'x> {
}
}
impl<'x> ResolveVariable for HttpContext<'x> {
impl ResolveVariable for HttpContext<'_> {
fn resolve_variable(&self, variable: u32) -> Variable<'_> {
match variable {
V_REMOTE_IP => self.session.remote_ip.to_string().into(),

View File

@@ -490,7 +490,7 @@ impl Contains for FailureDetails {
}
}
impl<'x> Contains for Feedback<'x> {
impl Contains for Feedback<'_> {
fn contains(&self, text: &str) -> bool {
// Check if any of the string fields contain the filter
self.authentication_results()

View File

@@ -406,7 +406,7 @@ impl<'x> EmailIndexBuilder<'x> {
}
}
impl<'x> EmailIndexBuilder<'x> {
impl EmailIndexBuilder<'_> {
pub fn build(self, batch: &mut BatchBuilder, account_id: u32, tenant_id: Option<u32>) {
let options = if self.set {
// Serialize metadata

View File

@@ -77,6 +77,7 @@ pub trait SieveScriptSet: Sync + Send {
fail_if_active: bool,
) -> impl Future<Output = trc::Result<bool>> + Send;
#[allow(clippy::type_complexity)]
fn sieve_set_item(
&self,
changes_: Object<SetValue>,