From daa109df7499490ff07bfe6bb19b3a7b83e50b78 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 25 Jun 2019 19:20:13 +0200 Subject: Be more explicit about names here Signed-off-by: Matthias Beyer --- src/repository.rs | 11 +++++------ 1 file 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; + type Node: node::Node; type Get: Future; /// It should be trivial to get the Id of a Node. fn get(id: ID) -> Result - where ID: Id; - + where ID: id::Id; } -- cgit v1.2.3