summaryrefslogtreecommitdiffstats
path: root/src/collection_builder.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-04-24 17:08:47 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-04-24 17:18:01 +0200
commitfb2bc2e64cda462a8be0acb19863796647d180d6 (patch)
tree6a3dd3d3418e66c729b455a0fdb0d62fc501f072 /src/collection_builder.rs
parent2784016116c85decb24feb837c36a9ac4eb9758d (diff)
Make error type explicit
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
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>;
}