Diffstat (limited to 'tests/builder_value.rs')
-rw-r--r--tests/builder_value.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/builder_value.rs b/tests/builder_value.rs
index 9f52252..b1d36de 100644
--- a/tests/builder_value.rs
+++ b/tests/builder_value.rs
@@ -20,12 +20,15 @@ fn value_builder_gives_value_protocol_as_hint() {
// Expect the value builder to hint the value protocol with a owned i32.
let mut walker = MockHintWalker::<ValueProto<OwnedStatic<i32>, Blocking>>::new();
- walker.expect_hint().once().returning(|visitor, ()| {
+ walker.expect_hint().once().returning(|mut visitor, ()| {
// Fulfill the hint by visiting with a i32 value.
- assert_eq!(visitor.visit(OwnedStatic(42)).value(), Flow::Done.into());
+ assert_eq!(
+ visitor.as_known().visit(OwnedStatic(42)).value(),
+ Flow::Done.into()
+ );
// We are done as the walker.
- Flow::Done
+ Flow::Done.into()
});
// Request a hint from the i32 builder for what protocol to use.