refact: more specific code

This commit is contained in:
Kilerd Chan 2019-01-01 23:16:56 +08:00
parent 5aac3b9983
commit 1d2178d522

View File

@ -20,7 +20,7 @@ pub fn rss(setting: SettingMap, conn: DbConn) -> content::Xml<String> {
} else {
format!("https://www.kilerd.me/archives/{}", item.article.id)
},
_ => format!("https://www.kilerd.me/archives/{}", item.article.id)
None => format!("https://www.kilerd.me/archives/{}", item.article.id)
};
ItemBuilder::default()
.title(item.article.title.clone())