]> Untitled Git - lemmy.git/blobdiff - src/scheduled_tasks.rs
Running clippy --fix (#1647)
[lemmy.git] / src / scheduled_tasks.rs
index 4751e9ea205a5588e041b3be7d632c4f63686114..a3b5f75dbdec21254cdebd655cd6ca3ac508b534 100644 (file)
@@ -41,7 +41,7 @@ fn reindex_aggregates_tables(conn: &PgConnection) {
     "comment_aggregates",
     "community_aggregates",
   ] {
-    reindex_table(&conn, &table_name);
+    reindex_table(conn, table_name);
   }
 }
 
@@ -55,7 +55,7 @@ fn reindex_table(conn: &PgConnection, table_name: &str) {
 /// Clear old activities (this table gets very large)
 fn clear_old_activities(conn: &PgConnection) {
   info!("Clearing old activities...");
-  Activity::delete_olds(&conn).expect("clear old activities");
+  Activity::delete_olds(conn).expect("clear old activities");
   info!("Done.");
 }