diff options
-rw-r--r-- | src/repository.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/repository.rs b/src/repository.rs index b4ab3a4..57f2d63 100644 --- a/src/repository.rs +++ b/src/repository.rs @@ -6,22 +6,21 @@ use std::fmt::Debug; -use crate::node::Node; -use crate::id::Id; +use crate::node; +use crate::id; use futures::future::Future; /// pub trait Repository: Debug { - type Id: Id; + type Id: id::Id; type Error: Debug; - type Node: Node<Id = Self::Id, Error = Self::Error>; + type Node: node::Node<Id = Self::Id, Error = Self::Error>; type Get: Future<Item = Self::Node, Error = Self::Error>; /// It should be trivial to get the Id of a Node. fn get<ID>(id: ID) -> Result<Self::Get, Self::Error> - where ID: Id; - + where ID: id::Id; } |