Diffstat (limited to 'src/protocol/visitor.rs')
-rw-r--r--src/protocol/visitor.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/protocol/visitor.rs b/src/protocol/visitor.rs
index 5f09279..5ffb032 100644
--- a/src/protocol/visitor.rs
+++ b/src/protocol/visitor.rs
@@ -9,7 +9,10 @@ mod tag;
mod value;
use effectful::{
- bound::HasSendAndSync, effective::{Canonical, Effective, UpdatePartial}, environment::{Environment, InEnvironment}, DynBind, SendSync
+ bound::HasSendAndSync,
+ effective::{Canonical, Effective, UpdatePartial},
+ environment::{Environment, InEnvironment},
+ DynBind, SendSync,
};
pub use recoverable::*;
pub use request_hint::*;
@@ -140,7 +143,7 @@ pub trait EffectiveVisitExt<'lt>: Effective<'lt> {
(cap, HasSendAndSync(f)),
|(cap, HasSendAndSync(f)), update, ()| f(cap, update).cast().into_raw(),
(),
- |_, update, out| (update, out)
+ |_, update, out| (update, out),
)
}
@@ -159,13 +162,15 @@ pub trait EffectiveVisitExt<'lt>: Effective<'lt> {
self.update_partial(
(),
|_, (update, result)| match result {
- VisitResult::Skipped(()) | VisitResult::Control(Flow::Continue) => (update, ControlFlow::Continue(())),
+ VisitResult::Skipped(()) | VisitResult::Control(Flow::Continue) => {
+ (update, ControlFlow::Continue(()))
+ }
VisitResult::Control(_) => (update, ControlFlow::Break(result)),
},
(cap, HasSendAndSync(f)),
|(cap, HasSendAndSync(f)), update, ()| f(cap, update).cast().into_raw(),
(),
- |_, update, out| (update, out)
+ |_, update, out| (update, out),
)
}
}