aboutsummaryrefslogtreecommitdiffstats
path: root/src/posts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/posts.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/posts.rs b/src/posts.rs
index a8e9f90..93c9179 100644
--- a/src/posts.rs
+++ b/src/posts.rs
@@ -14,7 +14,7 @@ pub trait Post {
fn subject(&self) -> Option<&str>;
fn published_at(&self) -> &DateTime<Utc>;
fn updated_at(&self) -> Option<&DateTime<Utc>>;
- fn tags(&self) -> &Vec<String>;
+ fn tags(&self) -> Vec<&str>;
fn lang(&self) -> &str;
fn post_type(&self) -> PostType;
fn content(&self) -> &str;
@@ -23,7 +23,7 @@ pub trait Post {
"https://en.blos.sm/posts/".to_owned() + self.id()
}
- fn get_tags<'a>(posts: &'a Vec<Self>) -> Vec<&'a String>
+ fn get_tags<'a>(posts: &'a Vec<Self>) -> Vec<&'a str>
where
Self: Sized,
{