Clippy fixes
This commit is contained in:
@@ -129,7 +129,7 @@ impl Queue {
|
||||
OnHold::ConcurrencyLimited { limiters, next_due } => {
|
||||
if !(limiters.iter().any(|l| {
|
||||
l.concurrent.load(Ordering::Relaxed) < l.max_concurrent
|
||||
}) || next_due.map_or(false, |due| due <= now))
|
||||
}) || next_due.is_some_and(|due| due <= now))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -475,6 +475,6 @@ impl Message {
|
||||
|| self
|
||||
.return_path
|
||||
.rsplit_once('@')
|
||||
.map_or(false, |(_, domain)| domains.contains(&domain.to_string()))
|
||||
.is_some_and(|(_, domain)| domains.contains(&domain.to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user