From 11b647db34fcb3debf85196d55131486b784d0ce Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 25 Jun 2019 21:07:23 +0200 Subject: Fix: We must return concrete types here --- src/node.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/node.rs b/src/node.rs index b6a088b..282241f 100644 --- a/src/node.rs +++ b/src/node.rs @@ -23,17 +23,16 @@ use futures::stream::Stream; /// pub trait Node: Debug + PartialEq + Eq { type Id: Id; - type NodePayload: Debug; + type Payload: Debug; type Error: Debug; - type Payload: Future; /// It should be trivial to get the Id of a Node. fn id(&self) -> Self::Id; /// Fetch the payload of the node. - fn payload(&self) -> Self::Payload; + fn payload(&self) -> Box>; /// Fetch the Ids of the parents of this node - fn parent_ids(&self) -> Stream; + fn parent_ids(&self) -> Box>; } -- cgit v1.2.3