From 32dbd9e9ce637540a51ceddb81d7f449ee942573 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 21 Mar 2024 01:10:33 +0100 Subject: [PATCH] fix: temp rename relationship field to avoid clash --- src/activitystream/object/relationship.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/activitystream/object/relationship.rs b/src/activitystream/object/relationship.rs index 7d69f9d2..a9e12478 100644 --- a/src/activitystream/object/relationship.rs +++ b/src/activitystream/object/relationship.rs @@ -3,13 +3,15 @@ use crate::activitystream::Node; pub trait Relationship : super::Object { fn subject(&self) -> Node { Node::Empty:: } fn relationship(&self) -> Option<&str> { None } // TODO what does this mean??? - fn object(&self) -> Node { Node::Empty:: } + // TODO was just object but clashes with Activity + fn relationship_object(&self) -> Node { Node::Empty:: } } pub trait RelationshipMut : super::ObjectMut { fn set_subject(self, val: Node) -> Self; fn set_relationship(self, val: Option<&str>) -> Self; // TODO what does this mean??? - fn set_object(self, val: Node) -> Self; + // TODO was just object but clashes with Activity + fn set_relationship_object(self, val: Node) -> Self; } impl Relationship for serde_json::Value {