summaryrefslogtreecommitdiffstats
path: root/src/value_builder.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-04-25 15:36:03 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-04-25 15:36:03 +0200
commitb05cb89d948a6f12abf622a5e08d589f41a26a5a (patch)
tree361c998e7f6d475a130561c3fff700494b2208dc /src/value_builder.rs
parent416d80b2f3b9a6c083f7e56cbba4d303140f2d5c (diff)
Add support for default valuesHEADmaster
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/value_builder.rs')
-rw-r--r--src/value_builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value_builder.rs b/src/value_builder.rs
index d7e045b..e450843 100644
--- a/src/value_builder.rs
+++ b/src/value_builder.rs
@@ -4,6 +4,6 @@ use crate::error::Result;
pub trait ValueBuilder {
type Output: Sized;
- fn build_value(&self, question: &str) -> Result<Self::Output>;
+ fn build_value(&self, question: &str, default: Option<&Self::Output>) -> Result<Self::Output>;
}