Diffstat (limited to 'tests/protocol_visitor_value.rs')
-rw-r--r--tests/protocol_visitor_value.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/protocol_visitor_value.rs b/tests/protocol_visitor_value.rs
index 584e87f..91fb280 100644
--- a/tests/protocol_visitor_value.rs
+++ b/tests/protocol_visitor_value.rs
@@ -82,7 +82,10 @@ fn borrowed_value() {
let visitor: &mut dyn Value<BorrowedStaticHrt<String>, Blocking> = &mut mock;
// Visit the borrowed value.
- assert_eq!(visitor.visit(BorrowedStatic(value)).value(), Flow::Done.into());
+ assert_eq!(
+ visitor.visit(BorrowedStatic(value)).value(),
+ Flow::Done.into()
+ );
let visitor: &mut (dyn AnyTrait + Send + Sync) = &mut mock;
assert_eq!(
@@ -126,7 +129,10 @@ fn temp_borrowed_value() {
// Visit the context to show we can shorten the lifetime.
// This would also force the lifetime to be to long if this wasn't the Temp form.
- assert_eq!(visitor.visit(TempBorrowedMutStatic(value)).value(), Flow::Done.into());
+ assert_eq!(
+ visitor.visit(TempBorrowedMutStatic(value)).value(),
+ Flow::Done.into()
+ );
// Temporary scope (smaller than the context we set above).
{
@@ -134,7 +140,10 @@ fn temp_borrowed_value() {
let mut value = String::from("test");
// Visit the temp value.
- assert_eq!(visitor.visit(TempBorrowedMutStatic(&mut value)).value(), Flow::Done.into());
+ assert_eq!(
+ visitor.visit(TempBorrowedMutStatic(&mut value)).value(),
+ Flow::Done.into()
+ );
}
// Force the visitor to outlive the temporary scope.