Remove useless trait

This commit is contained in:
Bat 2018-05-18 23:28:40 +01:00
parent 0b32650c00
commit aa233abb41

View File

@ -1,14 +1,9 @@
use diesel::PgConnection; use diesel::PgConnection;
use serde_json; use serde_json;
use activity_pub::actor::Actor;
pub trait Object { pub trait Object {
fn serialize(&self, conn: &PgConnection) -> serde_json::Value; fn serialize(&self, conn: &PgConnection) -> serde_json::Value;
fn compute_id(&self, conn: &PgConnection) -> String; fn compute_id(&self, conn: &PgConnection) -> String;
} }
pub trait Attribuable {
fn set_attribution<T>(&self, by: &T) where T: Actor;
}