From: Felix Ableitner Date: Wed, 9 Dec 2020 23:55:14 +0000 (+0100) Subject: fix test, run clippy X-Git-Url: http://these/git/%22https:/nerdica.net/%7Biframely.url%7D?a=commitdiff_plain;h=5b34d2be6cacc8f279da9e95defa27007f05718a;p=lemmy.git fix test, run clippy --- 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();