Diffstat (limited to 'src/build/builders/core/bool.rs')
-rw-r--r--src/build/builders/core/bool.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/build/builders/core/bool.rs b/src/build/builders/core/bool.rs
index ebf628c..56ef873 100644
--- a/src/build/builders/core/bool.rs
+++ b/src/build/builders/core/bool.rs
@@ -17,12 +17,6 @@ pub enum Error {
pub struct Builder(Option<bool>);
-impl<'ctx> Default for Builder {
- fn default() -> Self {
- Self(None)
- }
-}
-
impl<'ctx> crate::Builder<'ctx> for Builder {
type Error = Error;
@@ -36,12 +30,18 @@ impl<'ctx> crate::Builder<'ctx> for Builder {
fn build(self) -> Result<Self::Value, Self::Error> {
self.0.ok_or(Error::Incomplete)
}
+
+ type Seed = ();
+
+ fn from_seed(seed: Self::Seed) -> Self {
+ Self(None)
+ }
}
any_trait! {
impl['a, 'ctx] Builder = [
dyn Value<'a, OwnedStatic<bool>> + 'a,
- ];
+ ]
}
impl<'a> Value<'a, OwnedStatic<bool>> for Builder {