Skip to content

Commit 118d93b

Browse files
committed
Allow serialization of execution context with user data
1 parent b4cc659 commit 118d93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/src/execution_context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl<'de, U> DeserializeSeed<'de> for &mut ExecutionContext<'de, U> {
356356
}
357357
}
358358

359-
impl Serialize for ExecutionContext<'_> {
359+
impl<U> Serialize for ExecutionContext<'_, U> {
360360
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
361361
where
362362
S: Serializer,
@@ -449,7 +449,7 @@ fn test_serde() {
449449
}
450450
.build();
451451

452-
let mut ctx = ExecutionContext::new(&scheme);
452+
let mut ctx = ExecutionContext::<()>::new(&scheme);
453453

454454
assert_eq!(
455455
ctx.set_field_value(scheme.get_field("bool").unwrap(), LhsValue::Bool(false)),

0 commit comments

Comments
 (0)