Clippy fixes
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user