- name: cargo clippy
image: ekidd/rust-musl-builder:1.47.0
commands:
- - cargo clippy --all-targets --all-features -- -D warnings
+ - cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: check documentation build
image: ekidd/rust-musl-builder:1.47.0
let expected_post_listing_no_user = PostView {
post: Post {
id: inserted_post.id,
- name: post_name.to_owned(),
+ name: post_name,
creator_id: inserted_user.id,
url: None,
body: None,
my_vote: None,
creator: UserSafe {
id: inserted_user.id,
- name: user_name.to_owned(),
+ name: user_name,
preferred_username: None,
published: inserted_user.published,
avatar: None,
creator_banned_from_community: false,
community: CommunitySafe {
id: inserted_community.id,
- name: community_name.to_owned(),
+ name: community_name,
icon: None,
removed: false,
deleted: false,