mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Run cargo clippy in CI on whole workspace
This commit is contained in:
parent
95e30f0e08
commit
5a16d43fef
@ -17,7 +17,7 @@ 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 --all-targets --all-features -- -D warnings
|
- cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
- name: check documentation build
|
- name: check documentation build
|
||||||
image: ekidd/rust-musl-builder:1.47.0
|
image: ekidd/rust-musl-builder:1.47.0
|
||||||
|
@ -540,7 +540,7 @@ mod tests {
|
|||||||
let expected_post_listing_no_user = PostView {
|
let expected_post_listing_no_user = PostView {
|
||||||
post: Post {
|
post: Post {
|
||||||
id: inserted_post.id,
|
id: inserted_post.id,
|
||||||
name: post_name.to_owned(),
|
name: post_name,
|
||||||
creator_id: inserted_user.id,
|
creator_id: inserted_user.id,
|
||||||
url: None,
|
url: None,
|
||||||
body: None,
|
body: None,
|
||||||
@ -562,7 +562,7 @@ mod tests {
|
|||||||
my_vote: None,
|
my_vote: None,
|
||||||
creator: UserSafe {
|
creator: UserSafe {
|
||||||
id: inserted_user.id,
|
id: inserted_user.id,
|
||||||
name: user_name.to_owned(),
|
name: user_name,
|
||||||
preferred_username: None,
|
preferred_username: None,
|
||||||
published: inserted_user.published,
|
published: inserted_user.published,
|
||||||
avatar: None,
|
avatar: None,
|
||||||
@ -579,7 +579,7 @@ mod tests {
|
|||||||
creator_banned_from_community: false,
|
creator_banned_from_community: false,
|
||||||
community: CommunitySafe {
|
community: CommunitySafe {
|
||||||
id: inserted_community.id,
|
id: inserted_community.id,
|
||||||
name: community_name.to_owned(),
|
name: community_name,
|
||||||
icon: None,
|
icon: None,
|
||||||
removed: false,
|
removed: false,
|
||||||
deleted: false,
|
deleted: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user