From 487f296db5d94cae07d9e0b4ac205581f587fd61 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 16 Apr 2023 16:12:09 +0900 Subject: [PATCH] Fix Clippy warnings --- plume-models/src/inbox.rs | 1 - plume-models/src/users.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plume-models/src/inbox.rs b/plume-models/src/inbox.rs index 2796ebb4..c30b3310 100644 --- a/plume-models/src/inbox.rs +++ b/plume-models/src/inbox.rs @@ -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, diff --git a/plume-models/src/users.rs b/plume-models/src/users.rs index d80fb33e..9658ea9b 100644 --- a/plume-models/src/users.rs +++ b/plume-models/src/users.rs @@ -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)?,