aboutsummaryrefslogtreecommitdiffstats
path: root/src/atom.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-01-31 18:55:36 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-01-31 18:55:36 +0000
commitd1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0 (patch)
treec54999785bf7ae865ca571a475da222e9e376873 /src/atom.rs
parentb78d026c242e8d95e611e050afd5b72eb562d56d (diff)
downloadblossom-d1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0.tar.gz
blossom-d1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0.tar.bz2
blossom-d1bfe2eb0ba8836d4eef4ca5dd6e20611dc3a8c0.zip
changed Post tags() to return a Vec<&str>
Diffstat (limited to 'src/atom.rs')
-rw-r--r--src/atom.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atom.rs b/src/atom.rs
index a64a6aa..bda4c51 100644
--- a/src/atom.rs
+++ b/src/atom.rs
@@ -107,9 +107,9 @@ pub async fn atom<P: Post + Clone>(ctx: Context, entries: Vec<P>) -> Feed {
.tags()
.into_iter()
.map(|category| Category {
- term: category.clone(),
+ term: category.to_string(),
scheme: None,
- label: Some(category.clone()),
+ label: Some(category.to_string()),
})
.collect();
let published = Some(entry.published_at().to_owned().into());