Fix Clippy warnings

This commit is contained in:
Kitaiti Makoto 2023-04-16 16:12:09 +09:00
parent 8bdd481e0d
commit 487f296db5
2 changed files with 1 additions and 2 deletions

View file

@ -2,7 +2,6 @@ use activitystreams::activity::{Announce, Create, Delete, Follow, Like, Undo, Up
use crate::{
comments::Comment,
db_conn::DbConn,
follows, likes,
posts::{Post, PostUpdate},
reshares::Reshare,

View file

@ -169,7 +169,7 @@ impl User {
}
for comment in Comment::list_by_author(conn, self.id)? {
let delete_activity = comment.build_delete(&conn)?;
let delete_activity = comment.build_delete(conn)?;
crate::inbox::inbox(
conn,
serde_json::to_value(&delete_activity).map_err(Error::from)?,