Run cargo fmt

This commit is contained in:
Kitaiti Makoto
2021-01-16 01:13:45 +09:00
parent 3fd89e6b48
commit 26ffde726f
9 changed files with 55 additions and 32 deletions
+9 -9
View File
@@ -287,15 +287,15 @@ impl Post {
pub fn get_receivers_urls(&self, conn: &Connection) -> Result<Vec<String>> {
Ok(self
.get_authors(conn)?
.into_iter()
.filter_map(|a| a.get_followers(conn).ok())
.fold(vec![], |mut acc, f| {
for x in f {
acc.push(x.ap_url);
}
acc
}))
.get_authors(conn)?
.into_iter()
.filter_map(|a| a.get_followers(conn).ok())
.fold(vec![], |mut acc, f| {
for x in f {
acc.push(x.ap_url);
}
acc
}))
}
pub fn to_activity(&self, conn: &Connection) -> Result<LicensedArticle> {