Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 7, 2024
1 parent 7ff201f commit 8f35e96
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions backend/src/worker/do_work.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ pub(crate) async fn do_check_email_work(
delivery.ack(BasicAckOptions::default()).await?;

if let CheckEmailJobId::SingleShot = task.job_id {
send_single_shot_reply(channel, &delivery, &worker_output).await?;
}
send_single_shot_reply(channel, &delivery, &worker_output).await?;
}

// Store the result.
for storage in config.get_storages() {
Expand Down
18 changes: 11 additions & 7 deletions core/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ mod tests {

#[test]
fn should_skip_catch_all() {
assert!(
has_rule("gmail.com", "alt4.aspmx.l.google.com.", &Rule::SkipCatchAll)
);

assert!(
has_rule("domain.com", ".antispamcloud.com.", &Rule::SkipCatchAll)
)
assert!(has_rule(
"gmail.com",
"alt4.aspmx.l.google.com.",
&Rule::SkipCatchAll
));

assert!(has_rule(
"domain.com",
".antispamcloud.com.",
&Rule::SkipCatchAll
))
}
}

0 comments on commit 8f35e96

Please sign in to comment.