diff --git a/plume-common/src/utils.rs b/plume-common/src/utils.rs index e673adfc..89d5b3a2 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 3d469ee2..d94b4f2d 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 3e5d6004..399a87f1 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");