Flip the passthrough node onto record wires by dropping its dead lifetime

This commit is contained in:
Dennis Kobert
2026-08-10 13:33:58 +00:00
parent 05630bab6e
commit 492cf18cb0

View File

@@ -5,7 +5,7 @@ use std::marker::PhantomData;
/// Passes-through the input value without changing it. This is useful for rerouting wires for organization purposes.
#[node_macro::node(category("General"), skip_impl)]
fn passthrough<'i, T: 'i + Send>(_: impl Ctx, content: T) -> T {
fn passthrough<T: Send>(_: impl Ctx, content: T) -> T {
content
}