Wrap the intermediate Registry in an IntermediateContext.
This is currently just to maintain consistency with the render phase's RenderContext but in the future it should allow us to include immutable data that is not locked behind the ArcMutex.
This commit is contained in:
@@ -12,9 +12,9 @@ intermediate!(
|
||||
ITarget,
|
||||
&'orig organic::types::Target<'parse>,
|
||||
original,
|
||||
registry,
|
||||
intermediate_context,
|
||||
{
|
||||
let mut registry = registry.lock().unwrap();
|
||||
let mut registry = intermediate_context.registry.lock().unwrap();
|
||||
let id = registry.get_target(original.value);
|
||||
Ok(ITarget {
|
||||
id: id.clone(),
|
||||
|
||||
Reference in New Issue
Block a user