Fix code according to clippy

This commit is contained in:
Kitaiti Makoto
2021-03-28 03:46:37 +09:00
parent 9ed36b2aa3
commit 8e50d95a7a
8 changed files with 12 additions and 26 deletions
+1 -3
View File
@@ -255,9 +255,7 @@ impl FromId<DbConn> for Comment {
.and_then(|m| {
let author = &Post::get(conn, comm.post_id)?.get_authors(conn)?[0];
let not_author = m.link_props.href_string()? != author.ap_url.clone();
Ok(Mention::from_activity(
conn, &m, comm.id, false, not_author,
)?)
Mention::from_activity(conn, &m, comm.id, false, not_author)
})
.ok();
}