Skip to content

Commit 60b14eb

Browse files
committed
Use macro
1 parent b64a56d commit 60b14eb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/jobs.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ pub const JOB_PROCESSING_CADENCE_IN_SECS: u64 = 60;
4545

4646
pub fn jobs() -> Vec<JobSchedule> {
4747
// Add to this vector any new cron task you want (as explained above)
48-
let mut jobs: Vec<JobSchedule> = Vec::new();
49-
jobs.push(crate::handlers::docs_update::job());
50-
jobs.push(crate::handlers::rustc_commits::job());
51-
52-
jobs
48+
vec![
49+
crate::handlers::docs_update::job(),
50+
crate::handlers::rustc_commits::job(),
51+
]
5352
}
5453

5554
#[test]

0 commit comments

Comments
 (0)