mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-12 02:56:31 +00:00
clippy, fmt
This commit is contained in:
parent
3883fb5671
commit
fc5ef73a98
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ impl PerformCrud for EditComment {
|
||||||
|
|
||||||
let comment_id = data.comment_id;
|
let comment_id = data.comment_id;
|
||||||
let form = CommentUpdateForm::builder()
|
let form = CommentUpdateForm::builder()
|
||||||
.content(content_slurs_removed.map(|s| s.into_owned()))
|
.content(content_slurs_removed.map(std::borrow::Cow::into_owned))
|
||||||
.language_id(data.language_id)
|
.language_id(data.language_id)
|
||||||
.updated(Some(Some(naive_now())))
|
.updated(Some(Some(naive_now())))
|
||||||
.build();
|
.build();
|
||||||
|
|
|
@ -218,7 +218,7 @@ impl Object for ApubPost {
|
||||||
PostInsertForm {
|
PostInsertForm {
|
||||||
name,
|
name,
|
||||||
url: url.map(Into::into),
|
url: url.map(Into::into),
|
||||||
body: body_slurs_removed.map(|s| s.into_owned()),
|
body: body_slurs_removed.map(std::borrow::Cow::into_owned),
|
||||||
creator_id: creator.id,
|
creator_id: creator.id,
|
||||||
community_id: community.id,
|
community_id: community.id,
|
||||||
removed: None,
|
removed: None,
|
||||||
|
|
Loading…
Reference in a new issue