From 0b8e29d0945703d847c0526cd441e0b22fe9b272 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 31 Mar 2021 09:59:01 -0400 Subject: [PATCH] Fix clippy --- crates/db_views/src/post_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/db_views/src/post_view.rs b/crates/db_views/src/post_view.rs index 60f733190..04c3a2ae4 100644 --- a/crates/db_views/src/post_view.rs +++ b/crates/db_views/src/post_view.rs @@ -498,7 +498,7 @@ mod tests { let inserted_post = Post::create(&conn, &new_post).unwrap(); let new_bot_post = PostForm { - name: bot_post_name.to_owned(), + name: bot_post_name, creator_id: inserted_bot.id, community_id: inserted_community.id, ..PostForm::default()