mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 21:41:04 +00:00
Run cargo fmt
This commit is contained in:
parent
569979374f
commit
350697f89a
3 changed files with 3 additions and 6 deletions
|
@ -294,8 +294,7 @@ pub fn md_to_html<'a>(
|
||||||
}
|
}
|
||||||
let hashtag = text_acc;
|
let hashtag = text_acc;
|
||||||
let link = Tag::Link(
|
let link = Tag::Link(
|
||||||
format!("{}tag/{}", base_url, &hashtag)
|
format!("{}tag/{}", base_url, &hashtag).into(),
|
||||||
.into(),
|
|
||||||
hashtag.to_owned().into(),
|
hashtag.to_owned().into(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,7 @@ pub fn add_email_blocklist(
|
||||||
if let Err(Error::Db(_)) = result {
|
if let Err(Error::Db(_)) = result {
|
||||||
Ok(Flash::error(
|
Ok(Flash::error(
|
||||||
Redirect::to(uri!(admin_email_blocklist: page = None)),
|
Redirect::to(uri!(admin_email_blocklist: page = None)),
|
||||||
i18n!(rockets.intl.catalog, "Email already blocked")
|
i18n!(rockets.intl.catalog, "Email already blocked"),
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
Ok(Flash::success(
|
Ok(Flash::success(
|
||||||
|
|
|
@ -318,9 +318,7 @@ pub fn update(
|
||||||
.filter(|t| !t.is_empty())
|
.filter(|t| !t.is_empty())
|
||||||
.collect::<HashSet<_>>()
|
.collect::<HashSet<_>>()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|t| {
|
.filter_map(|t| Tag::build_activity(t.to_string()).ok())
|
||||||
Tag::build_activity(t.to_string()).ok()
|
|
||||||
})
|
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
post.update_tags(&conn, tags)
|
post.update_tags(&conn, tags)
|
||||||
.expect("post::update: tags error");
|
.expect("post::update: tags error");
|
||||||
|
|
Loading…
Reference in a new issue