summaryrefslogtreecommitdiffstats
path: root/src/repository.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-06-25 19:20:13 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-06-25 19:20:13 +0200
commitdaa109df7499490ff07bfe6bb19b3a7b83e50b78 (patch)
tree336c7b40d1a37dfedd0277678684e38a89dd4daa /src/repository.rs
parent6013177bfc5b3f3ee6b97abe36900fb22e8632e6 (diff)
Be more explicit about names here
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/repository.rs')
-rw-r--r--src/repository.rs11
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;
}