Add more clippy lints, remove dbg!() statement

This commit is contained in:
Felix Ableitner 2021-01-12 13:34:00 +01:00
parent a2f36d4aef
commit 521cd55913
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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?;