From 5b34d2be6cacc8f279da9e95defa27007f05718a Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 10 Dec 2020 00:55:14 +0100 Subject: [PATCH] fix test, run clippy --- .drone.yml | 3 +++ lemmy_db/src/user.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index 79b33c8c..45886aa2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,8 @@ name: default steps: - name: cargo test + # needed because it doesnt work as root, and drone clones as root without an easy way to change it + # https://github.com/emk/rust-musl-builder/issues/96 image: ekidd/rust-musl-builder:experimental-stable user: root environment: @@ -12,6 +14,7 @@ steps: commands: - cargo check --all - cargo test --workspace --no-fail-fast + - cargo clippy - mdbook build docs/ - name: run federation tests diff --git a/lemmy_db/src/user.rs b/lemmy_db/src/user.rs index 2c4c67ea..0210c3b0 100644 --- a/lemmy_db/src/user.rs +++ b/lemmy_db/src/user.rs @@ -265,6 +265,7 @@ mod tests { private_key: None, public_key: None, last_refreshed_at: inserted_user.published, + deleted: false, }; let read_user = User_::read(&conn, inserted_user.id).unwrap(); -- 2.44.1