Diffstat (limited to 'src/transform.rs')
| -rw-r--r-- | src/transform.rs | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/transform.rs b/src/transform.rs index b9cc346..fc37e01 100644 --- a/src/transform.rs +++ b/src/transform.rs @@ -42,7 +42,7 @@ pub enum BuildError<B, W> { Both(B, W), } -impl<B, W> core::fmt::Debug for BuildError<B, W> +impl<B, W> core::fmt::Debug for BuildError<B, W> where B: core::fmt::Debug, W: core::fmt::Debug, @@ -57,7 +57,12 @@ where pub trait BuildExt { /// Build a value of this type using the default builder. - fn build<'ctx, W>(walker: W) -> Result<Self, BuildError<<Self::Builder as BuilderTypes>::Error, <W as Walker<'ctx, Blocking>>::Error>> + fn build<'ctx, W>( + walker: W, + ) -> Result< + Self, + BuildError<<Self::Builder as BuilderTypes>::Error, <W as Walker<'ctx, Blocking>>::Error>, + > where Self: Build<'ctx, DefaultMode, Blocking>, <Self::Builder as BuilderTypes>::Seed: Default, @@ -72,7 +77,13 @@ pub trait BuildExt { fn build_async<'ctx, W>( walker: W, - ) -> impl Future<Output = Result<Self, BuildError<<Self::Builder as BuilderTypes>::Error, <W as Walker<'ctx, Async>>::Error>>> + Send + Sync + ) -> impl Future< + Output = Result< + Self, + BuildError<<Self::Builder as BuilderTypes>::Error, <W as Walker<'ctx, Async>>::Error>, + >, + > + Send + + Sync where Self: Build<'ctx, DefaultMode, Async>, <Self::Builder as BuilderTypes>::Seed: Default, |