Diffstat (limited to 'src/build.rs')
-rw-r--r--src/build.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/build.rs b/src/build.rs
index 24232a0..d77bb39 100644
--- a/src/build.rs
+++ b/src/build.rs
@@ -6,7 +6,7 @@ use crate::{
};
/// A buildable type.
-pub trait Build<'ctx, M, E: Effect<'ctx>>: BuilderTypes<Value = Self> + Send {
+pub trait Build<'ctx, M, E: Effect>: BuilderTypes<Value = Self> + Send {
/// The builder that can be used to build a value of `Self`.
type Builder: Builder<'ctx, E, Seed = Self::Seed, Error = Self::Error, Value = Self>;
}
@@ -34,8 +34,8 @@ pub trait BuilderTypes {
/// 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, E: Effect<'ctx>>: BuilderTypes + Sized + Send {
- fn from_seed<'a>(seed: Self::Seed) -> Future<'a, 'ctx, Self, E>
+pub trait Builder<'ctx, E: Effect>: BuilderTypes + Sized + Send {
+ fn from_seed<'a>(seed: Self::Seed) -> Future<'a, Self, E>
where
Self: 'a;
@@ -43,7 +43,7 @@ pub trait Builder<'ctx, E: Effect<'ctx>>: BuilderTypes + Sized + Send {
///
/// If an error happened with the builder during the walk
/// it will be reported here.
- fn build<'a>(self) -> Future<'a, 'ctx, Result<Self::Value, Self::Error>, E>
+ fn build<'a>(self) -> Future<'a, Result<Self::Value, Self::Error>, E>
where
Self: 'a;