diff --git a/apb/src/target.rs b/apb/src/target.rs index 3b9aff3f..56108860 100644 --- a/apb/src/target.rs +++ b/apb/src/target.rs @@ -6,8 +6,7 @@ pub trait Addressed { fn addressed(&self) -> Vec; } -#[cfg(feature = "unstructured")] -impl Addressed for serde_json::Value { +impl Addressed for T { fn addressed(&self) -> Vec { let mut to : Vec = self.to().map(|x| x.href().to_string()).collect(); to.append(&mut self.bto().map(|x| x.href().to_string()).collect());