From 50462204e82056cde2ac54e271bd64f611c188ca Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Tue, 1 Dec 2020 08:38:58 +0900 Subject: [PATCH] Run cargo fmt --- plume-common/src/utils.rs | 3 +-- src/routes/instance.rs | 2 +- src/routes/posts.rs | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plume-common/src/utils.rs b/plume-common/src/utils.rs index e673adfc3..89d5b3a22 100644 --- a/plume-common/src/utils.rs +++ b/plume-common/src/utils.rs @@ -294,8 +294,7 @@ pub fn md_to_html<'a>( } let hashtag = text_acc; let link = Tag::Link( - format!("{}tag/{}", base_url, &hashtag) - .into(), + format!("{}tag/{}", base_url, &hashtag).into(), hashtag.to_owned().into(), ); diff --git a/src/routes/instance.rs b/src/routes/instance.rs index 3d469ee2a..d94b4f2df 100644 --- a/src/routes/instance.rs +++ b/src/routes/instance.rs @@ -215,7 +215,7 @@ pub fn add_email_blocklist( if let Err(Error::Db(_)) = result { Ok(Flash::error( Redirect::to(uri!(admin_email_blocklist: page = None)), - i18n!(rockets.intl.catalog, "Email already blocked") + i18n!(rockets.intl.catalog, "Email already blocked"), )) } else { Ok(Flash::success( diff --git a/src/routes/posts.rs b/src/routes/posts.rs index 3e5d60047..399a87f15 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -318,9 +318,7 @@ pub fn update( .filter(|t| !t.is_empty()) .collect::>() .into_iter() - .filter_map(|t| { - Tag::build_activity(t.to_string()).ok() - }) + .filter_map(|t| Tag::build_activity(t.to_string()).ok()) .collect::>(); post.update_tags(&conn, tags) .expect("post::update: tags error");