mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 04:48:13 +08:00
Flip the passthrough node onto record wires by dropping its dead lifetime
This commit is contained in:
@@ -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.
|
/// Passes-through the input value without changing it. This is useful for rerouting wires for organization purposes.
|
||||||
#[node_macro::node(category("General"), skip_impl)]
|
#[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
|
content
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user