Add more clippy lints, remove dbg!() statement
This commit is contained in:
parent
a2f36d4aef
commit
521cd55913
2 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,8 @@ steps:
|
||||||
- name: cargo clippy
|
- name: cargo clippy
|
||||||
image: ekidd/rust-musl-builder:1.47.0
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
commands:
|
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
|
- name: check documentation build
|
||||||
image: ekidd/rust-musl-builder:1.47.0
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
|
|
|
@ -33,7 +33,7 @@ pub async fn get_apub_user_http(
|
||||||
User_::find_by_email_or_username(conn, &user_name)
|
User_::find_by_email_or_username(conn, &user_name)
|
||||||
})
|
})
|
||||||
.await??;
|
.await??;
|
||||||
dbg!(&user.deleted);
|
|
||||||
if !user.deleted {
|
if !user.deleted {
|
||||||
let apub = user.to_apub(context.pool()).await?;
|
let apub = user.to_apub(context.pool()).await?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue