Diffstat (limited to 'tests/protocol_visitor_request_hint.rs')
-rw-r--r--tests/protocol_visitor_request_hint.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/protocol_visitor_request_hint.rs b/tests/protocol_visitor_request_hint.rs
index 06f811f..6c6c2fb 100644
--- a/tests/protocol_visitor_request_hint.rs
+++ b/tests/protocol_visitor_request_hint.rs
@@ -10,7 +10,7 @@ use common::{
use mockall::predicate::eq;
use treaty::{
any::{OwnedStatic, TypeNameId},
- effect::Blocking,
+ effect::{Blocking, ReadyValue},
protocol::{
visitor::{RequestHint, RequestHintProto, ValueKnown, ValueProto, VisitResult},
walker::hint::HintProto,
@@ -37,7 +37,7 @@ fn hints_can_be_requested() {
// Get the known for the value protocol.
assert_eq!(
- obj.known(&()).into_inner(),
+ obj.known(&()).value(),
Ok(ValueKnown {
preview: Some(&OwnedStatic(42))
})
@@ -76,7 +76,7 @@ fn hints_can_be_requested() {
// Request a hint from the visitor.
assert!(matches!(
- visitor.request_hint(DynWalker(&mut mock)).into_inner(),
+ visitor.request_hint(DynWalker(&mut mock)).value(),
VisitResult::Control(Flow::Done)
));
}