Fix automatic Into node insertion (#3087)

Fix automatic into node insertion
This commit is contained in:
Dennis Kobert
2025-08-23 18:21:54 +02:00
committed by GitHub
parent 354bf93364
commit bb364c92ad
4 changed files with 33 additions and 55 deletions
+2 -1
View File
@@ -153,13 +153,14 @@ where
{
type Output = DynFuture<'input, O>;
#[inline]
#[track_caller]
fn eval(&'input self, input: I) -> Self::Output {
{
let node_name = self.node.node_name();
let input = Box::new(input);
let future = self.node.eval(input);
Box::pin(async move {
let out = dyn_any::downcast(future.await).unwrap_or_else(|e| panic!("DowncastBothNode Input {e} in: \n{node_name}"));
let out = dyn_any::downcast(future.await).unwrap_or_else(|e| panic!("DowncastBothNode wrong output type: {e} in: \n{node_name}"));
*out
})
}