Skip to content

Commit f710bfb

Browse files
committed
worker/jobs/expiry_notification: Simplify diesel imports
1 parent f14add2 commit f710bfb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/worker/jobs/expiry_notification.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ use anyhow::anyhow;
55
use chrono::SecondsFormat;
66
use crates_io_worker::BackgroundJob;
77
use diesel::dsl::{now, IntervalDsl};
8-
use diesel::{
9-
ExpressionMethods, NullableExpressionMethods, PgConnection, QueryDsl, QueryResult, RunQueryDsl,
10-
SelectableHelper,
11-
};
8+
use diesel::prelude::*;
129
use std::sync::Arc;
1310

1411
/// The threshold in days for the expiry notification.
@@ -140,7 +137,6 @@ mod tests {
140137
util::token::PlainToken,
141138
};
142139
use diesel::dsl::IntervalDsl;
143-
use diesel::{QueryDsl, SelectableHelper};
144140
use lettre::Address;
145141

146142
#[tokio::test]

0 commit comments

Comments
 (0)