Justify the three clippy lints that must stand

This commit is contained in:
Dennis Kobert
2026-09-06 16:24:53 +00:00
parent 5bedfa4d11
commit a911bcc165
3 changed files with 6 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ use glam::{DAffine2, DVec2};
use vector_types::GradientStops;
/// The outcome of materializing a leveled wire into a group.
// The group is the render path's success payload; boxing it would add a heap allocation per materialized level.
#[allow(clippy::large_enum_variant)]
pub enum LevelGroup<'e> {
Group(Group<'e>, Finality),
Pending,

View File

@@ -547,6 +547,8 @@ pub(crate) struct ItemShape {
pub(crate) attrs: Vec<LevelAttr>,
}
// Macro IR built once per node at expansion time, so the variant spread costs nothing at runtime.
#[allow(clippy::large_enum_variant)]
pub(crate) enum Element {
Concrete(Type),
/// Indexes [`Node::generics`].