From 521cd55913982a250c0f122e6c7468cdae5b51fb Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 12 Jan 2021 13:34:00 +0100 Subject: [PATCH] Add more clippy lints, remove dbg!() statement --- .drone.yml | 3 ++- lemmy_apub/src/http/user.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 11abb8dae..1e2b9b10a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,8 @@ steps: - name: cargo clippy image: ekidd/rust-musl-builder:1.47.0 commands: - - cargo clippy --workspace --tests --all-targets --all-features -- -D warnings + - cargo clippy --workspace --tests --all-targets --all-features -- \ + -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro - name: check documentation build image: ekidd/rust-musl-builder:1.47.0 diff --git a/lemmy_apub/src/http/user.rs b/lemmy_apub/src/http/user.rs index 343f69cb8..3005b8b59 100644 --- a/lemmy_apub/src/http/user.rs +++ b/lemmy_apub/src/http/user.rs @@ -33,7 +33,7 @@ pub async fn get_apub_user_http( User_::find_by_email_or_username(conn, &user_name) }) .await??; - dbg!(&user.deleted); + if !user.deleted { let apub = user.to_apub(context.pool()).await?;