mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 17:28:12 +08:00
Elide the arena lifetimes that the signatures do not need
This commit is contained in:
@@ -257,7 +257,7 @@ macro_rules! wire_value {
|
|||||||
impl $crate::attribute::WireValue for $value {
|
impl $crate::attribute::WireValue for $value {
|
||||||
type Row = $value;
|
type Row = $value;
|
||||||
|
|
||||||
fn park<'e>(self, _: &'e $crate::arena::Arena) -> ::core::option::Option<$value> {
|
fn park(self, _: &$crate::arena::Arena) -> ::core::option::Option<$value> {
|
||||||
::core::option::Option::Some(self)
|
::core::option::Option::Some(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -401,10 +401,10 @@ macro_rules! attribute_reads {
|
|||||||
$(
|
$(
|
||||||
$(#[$meta])*
|
$(#[$meta])*
|
||||||
#[node_macro::node(category("Attributes: Read"))]
|
#[node_macro::node(category("Attributes: Read"))]
|
||||||
pub fn $node<'e, T>(
|
pub fn $node<T>(
|
||||||
_: impl Ctx,
|
_: impl Ctx,
|
||||||
/// The content whose lanes carry the attribute; its element is never read.
|
/// The content whose lanes carry the attribute; its element is never read.
|
||||||
(content, value): (T, Attr<'e, Named<Name0, $row>>),
|
(content, value): (T, Attr<Named<Name0, $row>>),
|
||||||
/// The attribute name, folded into an offset when the graph compiles.
|
/// The attribute name, folded into an offset when the graph compiles.
|
||||||
name: Named<Name0>,
|
name: Named<Name0>,
|
||||||
) -> $value {
|
) -> $value {
|
||||||
|
|||||||
Reference in New Issue
Block a user