summaryrefslogtreecommitdiffstats
path: root/src/collection_builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/collection_builder.rs')
-rw-r--r--src/collection_builder.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/collection_builder.rs b/src/collection_builder.rs
index 70c1ae3..ee49896 100644
--- a/src/collection_builder.rs
+++ b/src/collection_builder.rs
@@ -1,10 +1,11 @@
+use crate::error::Result;
+
/// A collection type that can be built interactively
///
/// That is, for example, a Vec<_>, a HashMap<_, _> or a struct
pub trait CollectionBuilder {
type Output: Sized;
- type Error: Sized;
- fn build_collection(&self, value_desc: &str) -> Result<Self::Output, Self::Error>;
+ fn build_collection(&self, value_desc: &str) -> Result<Self::Output>;
}