]> Untitled Git - lemmy.git/commitdiff
also check formatting, more extensive cargo check
authorFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 13:57:43 +0000 (14:57 +0100)
committerFelix Ableitner <me@nutomic.com>
Fri, 11 Dec 2020 13:57:43 +0000 (14:57 +0100)
.drone.yml
lemmy_db/src/schema.rs
src/main.rs

index c6977ed9cf091cf34e2acaab675f4fba665df68a..5075d6f27e44ee915e77a817e2ca8b14a31feaca 100644 (file)
@@ -9,10 +9,15 @@ steps:
     commands:
       - chown 1000:1000 . -R
 
+  - name: check formatting
+    image: ekidd/rust-musl-builder:1.47.0
+    commands:
+      - cargo fmt -- --check
+
   - name: cargo check
     image: ekidd/rust-musl-builder:1.47.0
     commands:
-      - cargo check --all
+      - cargo check --workspace --all-targets
 
   - name: cargo clippy
     image: ekidd/rust-musl-builder:1.47.0
index 535f4c53dd698d9d2e57446a781591c2865f62d3..49bbc46fb1c74fa29af44032c3d603ca43efc73d 100644 (file)
@@ -557,38 +557,38 @@ joinable!(user_mention -> comment (comment_id));
 joinable!(user_mention -> user_ (recipient_id));
 
 allow_tables_to_appear_in_same_query!(
-    activity,
-    category,
-    comment,
-    comment_aggregates_fast,
-    comment_like,
-    comment_report,
-    comment_saved,
-    community,
-    community_aggregates_fast,
-    community_follower,
-    community_moderator,
-    community_user_ban,
-    mod_add,
-    mod_add_community,
-    mod_ban,
-    mod_ban_from_community,
-    mod_lock_post,
-    mod_remove_comment,
-    mod_remove_community,
-    mod_remove_post,
-    mod_sticky_post,
-    password_reset_request,
-    post,
-    post_aggregates_fast,
-    post_like,
-    post_read,
-    post_report,
-    post_saved,
-    private_message,
-    site,
-    user_,
-    user_ban,
-    user_fast,
-    user_mention,
+  activity,
+  category,
+  comment,
+  comment_aggregates_fast,
+  comment_like,
+  comment_report,
+  comment_saved,
+  community,
+  community_aggregates_fast,
+  community_follower,
+  community_moderator,
+  community_user_ban,
+  mod_add,
+  mod_add_community,
+  mod_ban,
+  mod_ban_from_community,
+  mod_lock_post,
+  mod_remove_comment,
+  mod_remove_community,
+  mod_remove_post,
+  mod_sticky_post,
+  password_reset_request,
+  post,
+  post_aggregates_fast,
+  post_like,
+  post_read,
+  post_report,
+  post_saved,
+  private_message,
+  site,
+  user_,
+  user_ban,
+  user_fast,
+  user_mention,
 );
index 31c5f97090d8905965b839e4f47fe2c37e64d140..77063185f07702fa6d23a9df02f48326bfa52359 100644 (file)
@@ -98,6 +98,6 @@ async fn main() -> Result<(), LemmyError> {
 fn init() {
   use lemmy_db::tests::establish_unpooled_connection;
   let conn = establish_unpooled_connection();
-    embedded_migrations::run(&conn).unwrap();
-    run_advanced_migrations(&conn).unwrap();
-}
\ No newline at end of file
+  embedded_migrations::run(&conn).unwrap();
+  run_advanced_migrations(&conn).unwrap();
+}