Diffstat (limited to 'src/build/builders/core/struct.rs')
-rw-r--r--src/build/builders/core/struct.rs36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/build/builders/core/struct.rs b/src/build/builders/core/struct.rs
index fa22457..2da2879 100644
--- a/src/build/builders/core/struct.rs
+++ b/src/build/builders/core/struct.rs
@@ -1,7 +1,7 @@
use crate::{
any::{OwnedStatic, TempBorrowedStatic, TempBorrowedStaticHrt, TypeName},
any_trait,
- effect::{Effect, ObjSafe, Adapters},
+ effect::{Adapters, Effect, ObjSafe},
hkt::Marker,
protocol::{
visitor::{
@@ -87,26 +87,28 @@ where
where
Self: 'a,
{
- I::new_builders(seed).map(|builders| {
- Self {
- builders,
- // Start in tuple mode until a struct or map tag is visited.
- mode: StructMode::Tuple,
- _generics: Default::default(),
- }
- }).into()
+ I::new_builders(seed)
+ .map(|builders| {
+ Self {
+ builders,
+ // Start in tuple mode until a struct or map tag is visited.
+ mode: StructMode::Tuple,
+ _generics: Default::default(),
+ }
+ })
+ .into()
}
fn build<'a>(self) -> ObjSafe<'a, Result<Self::Value, Self::Error>, E>
where
Self: 'a,
{
- I::from_builders(self.builders).map(|builders| {
- match builders {
+ I::from_builders(self.builders)
+ .map(|builders| match builders {
Ok(value) => Ok(value),
Err(err) => Err(StructError { error: err }),
- }
- }).into()
+ })
+ .into()
}
fn as_visitor(&mut self) -> DynVisitor<'_, 'ctx> {
@@ -140,12 +142,10 @@ where
E::with(NoopVisitor::new(), |noop| {
walker
.walk(DynVisitor(noop))
- .map(|x| {
- x.to_continue()
- .into()
- })
+ .map(|x| x.to_continue().into())
.into()
- }).into()
+ })
+ .into()
}
}