From ab67953f96c96b61273fcfbedf3c858c8853f858 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sat, 2 Apr 2022 11:08:00 +0200 Subject: [PATCH] Implement ProxyNode for node graph --- node-graph/src/nodes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node-graph/src/nodes.rs b/node-graph/src/nodes.rs index d544e112..94bdd0b4 100644 --- a/node-graph/src/nodes.rs +++ b/node-graph/src/nodes.rs @@ -169,12 +169,12 @@ impl<'n, 'c, CachedNode: Node> CacheNode<'n, 'c, CachedNode> { pub struct ProxyNode(T); impl Node for ProxyNode { - type Output<'a> = T where Self: 'a; + type Output<'a> = &'a T where Self: 'a; type Input<'a> = &'a () where Self: 'a; - fn eval<'a, I: Borrow>>(&'a self, input: I) -> Self::Output<'a> { - todo!() + fn eval<'a, I: Borrow>>(&'a self, _input: I) -> Self::Output<'a> { + &self.0 } } impl DynamicInput for ProxyNode {