Diffstat (limited to 'src/build.rs')
-rw-r--r--src/build.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/build.rs b/src/build.rs
index b75fa6b..7ac87fd 100644
--- a/src/build.rs
+++ b/src/build.rs
@@ -1,7 +1,8 @@
pub mod builders;
use crate::{
- protocol::{AsObj as _, Effect, EffectAnyTrait, SyncEffect, Visitor, Yield},
+ effect::{AsObj as _, Effect, EffectAnyTrait, SyncEffect, Yield},
+ protocol::Visitor,
Walker,
};
@@ -41,7 +42,9 @@ pub trait Builder<'ctx, E: EffectAnyTrait<'ctx>>: AsVisitor<'ctx, E> {
///
/// If an error happened with the builder during the walk
/// it will be reported here.
- fn build<'a>(self) -> Yield<'a, 'ctx, Result<Self::Value, Self::Error>, Self::Effect> where Self: 'a;
+ fn build<'a>(self) -> Yield<'a, 'ctx, Result<Self::Value, Self::Error>, Self::Effect>
+ where
+ Self: 'a;
}
pub trait AsVisitor<'ctx, E: EffectAnyTrait<'ctx>> {
@@ -93,7 +96,11 @@ where
builder.build().map_err(BuildError::Builder)
}
-pub fn build_with<'ctx, B: Builder<'ctx, SyncEffect, Effect = SyncEffect>, W: Walker<'ctx, Effect = SyncEffect>>(
+pub fn build_with<
+ 'ctx,
+ B: Builder<'ctx, SyncEffect, Effect = SyncEffect>,
+ W: Walker<'ctx, Effect = SyncEffect>,
+>(
walker: W,
) -> Result<B::Value, BuildError<B::Error, W::Error>>
where