Jack Huey 1 жил өмнө
parent
commit
60b14eb433
1 өөрчлөгдсөн 4 нэмэгдсэн , 5 устгасан
  1. 4 5
      src/jobs.rs

+ 4 - 5
src/jobs.rs

@@ -45,11 +45,10 @@ pub const JOB_PROCESSING_CADENCE_IN_SECS: u64 = 60;
 
 pub fn jobs() -> Vec<JobSchedule> {
     // Add to this vector any new cron task you want (as explained above)
-    let mut jobs: Vec<JobSchedule> = Vec::new();
-    jobs.push(crate::handlers::docs_update::job());
-    jobs.push(crate::handlers::rustc_commits::job());
-
-    jobs
+    vec![
+        crate::handlers::docs_update::job(),
+        crate::handlers::rustc_commits::job(),
+    ]
 }
 
 #[test]