summaryrefslogtreecommitdiffstats
path: root/src/value_builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/value_builder.rs')
-rw-r--r--src/value_builder.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/value_builder.rs b/src/value_builder.rs
index 5418ee6..d7e045b 100644
--- a/src/value_builder.rs
+++ b/src/value_builder.rs
@@ -1,8 +1,9 @@
+use crate::error::Result;
+
/// A thing that can build a value by interactively asking the user a question
pub trait ValueBuilder {
type Output: Sized;
- type Error: Sized;
- fn build_value(&self, question: &str) -> Result<Self::Output, Self::Error>;
+ fn build_value(&self, question: &str) -> Result<Self::Output>;
}