]> Untitled Git - lemmy.git/blobdiff - crates/routes/src/feeds.rs
Diesel 2.0.0 upgrade (#2452)
[lemmy.git] / crates / routes / src / feeds.rs
index 592aeb2ddac08f844efbd2f350822039ef612bda..1943c280ee045c6c89641ea02da268e06ef9f994 100644 (file)
@@ -178,7 +178,7 @@ fn get_sort_type(info: web::Query<Params>) -> Result<SortType, ParseError> {
 
 #[tracing::instrument(skip_all)]
 fn get_feed_user(
-  conn: &PgConnection,
+  conn: &mut PgConnection,
   sort_type: &SortType,
   user_name: &str,
   protocol_and_hostname: &str,
@@ -209,7 +209,7 @@ fn get_feed_user(
 
 #[tracing::instrument(skip_all)]
 fn get_feed_community(
-  conn: &PgConnection,
+  conn: &mut PgConnection,
   sort_type: &SortType,
   community_name: &str,
   protocol_and_hostname: &str,
@@ -243,7 +243,7 @@ fn get_feed_community(
 
 #[tracing::instrument(skip_all)]
 fn get_feed_front(
-  conn: &PgConnection,
+  conn: &mut PgConnection,
   jwt_secret: &str,
   sort_type: &SortType,
   jwt: &str,
@@ -280,7 +280,7 @@ fn get_feed_front(
 
 #[tracing::instrument(skip_all)]
 fn get_feed_inbox(
-  conn: &PgConnection,
+  conn: &mut PgConnection,
   jwt_secret: &str,
   jwt: &str,
   protocol_and_hostname: &str,