Diffstat (limited to 'src/build.rs')
| -rw-r--r-- | src/build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build.rs b/src/build.rs index ab408e8..5a6b526 100644 --- a/src/build.rs +++ b/src/build.rs @@ -6,7 +6,7 @@ use crate::{ }; /// A buildable type. -pub trait Build<'ctx>: BuilderTypes<'ctx, Value = Self> + Send { +pub trait Build<'ctx>: BuilderTypes<Value = Self> + Send { /// The builder that can be used to build a value of `Self`. type Builder<E: Effect<'ctx>>: Builder< 'ctx, @@ -17,7 +17,7 @@ pub trait Build<'ctx>: BuilderTypes<'ctx, Value = Self> + Send { >; } -pub trait BuilderTypes<'ctx> { +pub trait BuilderTypes { type Seed: Send; /// Error that can happen during filling the builder with data. @@ -40,7 +40,7 @@ pub trait BuilderTypes<'ctx> { /// the builder with data from it's walk. /// - Call [`Self::build()`] to finish building the value and get any errors /// that happened during filling it with data. -pub trait Builder<'ctx>: BuilderTypes<'ctx> + Sized + Send { +pub trait Builder<'ctx>: BuilderTypes + Sized + Send { type Effect: Effect<'ctx>; fn from_seed<'a>(seed: Self::Seed) -> Future<'a, 'ctx, Self, Self::Effect> |