Diffstat (limited to 'tests/builder_struct.rs')
-rw-r--r--tests/builder_struct.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/builder_struct.rs b/tests/builder_struct.rs
index f1da081..52e9b09 100644
--- a/tests/builder_struct.rs
+++ b/tests/builder_struct.rs
@@ -1,4 +1,5 @@
use effectful::SendSync;
+use effectful::blocking::BlockingSpin;
use macro_rules_attribute::derive;
use treaty::{
any::{OwnedStatic, TempBorrowedStatic},
@@ -14,7 +15,6 @@ use treaty::{
use crate::common::{
protocol::{sequence::MockSequenceScope, value::ValueVisitorExt as _},
walker::MockWalker,
- Blocking,
};
mod common;
@@ -30,7 +30,7 @@ fn a_struct_builder_can_build_from_a_sequence_of_field_values() {
let mut scope;
{
// A tuple-like struct is just a sequence.
- scope = MockSequenceScope::<Blocking>::new();
+ scope = MockSequenceScope::<BlockingSpin>::new();
// First field.
scope.expect_next().once().returning(|mut visitor| {
@@ -73,13 +73,13 @@ fn a_struct_builder_can_build_from_a_sequence_of_keyed_values() {
let mut scope;
{
// A map is a sequence of keyed values.
- scope = MockSequenceScope::<Blocking>::new();
+ scope = MockSequenceScope::<BlockingSpin>::new();
// Here we do the b field first to show a map-like doesn't care about order.
scope.expect_next().once().returning(|mut visitor| {
let mut walker;
{
- walker = MockWalker::<(), (), Blocking>::new();
+ walker = MockWalker::<(), (), BlockingSpin>::new();
// We need to give the b field name in the key tag.
walker.expect_walk().once().returning(|mut visitor| {
@@ -91,7 +91,7 @@ fn a_struct_builder_can_build_from_a_sequence_of_keyed_values() {
// Tag the value with a key as the field name.
assert_eq!(
- visit_tag::<tags::Key, Blocking, _>(TagConst, visitor.cast(), walker).into_value(),
+ visit_tag::<tags::Key, BlockingSpin, _>(TagConst, visitor.cast(), walker).into_value(),
Ok(VisitResult::Control(Flow::Continue)),
);
@@ -106,7 +106,7 @@ fn a_struct_builder_can_build_from_a_sequence_of_keyed_values() {
scope.expect_next().once().returning(|mut visitor| {
let mut walker;
{
- walker = MockWalker::<(), (), Blocking>::new();
+ walker = MockWalker::<(), (), BlockingSpin>::new();
// Here we do field a.
walker.expect_walk().once().returning(|mut visitor| {
@@ -118,7 +118,7 @@ fn a_struct_builder_can_build_from_a_sequence_of_keyed_values() {
// Tag the value with a key.
assert_eq!(
- visit_tag::<tags::Key, Blocking, _>(TagConst, visitor.cast(), walker).into_value(),
+ visit_tag::<tags::Key, BlockingSpin, _>(TagConst, visitor.cast(), walker).into_value(),
Ok(VisitResult::Control(Flow::Continue)),
);
@@ -138,7 +138,7 @@ fn a_struct_builder_can_build_from_a_sequence_of_keyed_values() {
// We need to provide the map tag to the struct before getting into the sequence.
// This tag notifies the struct builder to expect the sequence as a map.
assert_eq!(
- visit_tag::<tags::Map, Blocking, _>(TagConst, builder.as_visitor(), NoopWalker::new())
+ visit_tag::<tags::Map, BlockingSpin, _>(TagConst, builder.as_visitor(), NoopWalker::new())
.into_value(),
Ok(VisitResult::Control(Flow::Continue))
);