Remove some unused #[derive] (#473)

We used to need them, probably when we were using Tera.
This commit is contained in:
Baptiste Gelez
2019-03-12 19:40:54 +01:00
committed by GitHub
parent 6405bd7261
commit 42dca3daae
24 changed files with 23 additions and 37 deletions
+2 -5
View File
@@ -1,4 +1,4 @@
use activitypub::{actor::Group, collection::OrderedCollection, Actor, CustomObject, Object};
use activitypub::{actor::Group, collection::OrderedCollection, CustomObject};
use chrono::NaiveDateTime;
use diesel::{self, ExpressionMethods, QueryDsl, RunQueryDsl, SaveChangesDsl};
use openssl::{
@@ -30,7 +30,7 @@ use {Connection, BASE_URL, USE_HTTPS, Error, Result};
pub type CustomGroup = CustomObject<ApSignature, Group>;
#[derive(Queryable, Identifiable, Serialize, Deserialize, Clone, AsChangeset)]
#[derive(Queryable, Identifiable, Clone, AsChangeset)]
pub struct Blog {
pub id: i32,
pub actor_id: String,
@@ -363,9 +363,6 @@ impl IntoId for Blog {
}
}
impl Object for Blog {}
impl Actor for Blog {}
impl WithInbox for Blog {
fn get_inbox_url(&self) -> String {
self.inbox_url.clone()