diff --git a/core/dr-gpu/examples/frame_budget.rs b/core/dr-gpu/examples/frame_budget.rs index 95c5d54..8040770 100644 --- a/core/dr-gpu/examples/frame_budget.rs +++ b/core/dr-gpu/examples/frame_budget.rs @@ -634,7 +634,10 @@ fn activate_everything(graph: &mut EditGraph, neighbourhood: bool) { ParamKind::Bool => 1.0, // The second variant when there is one. The first is the // default by construction — see `ParamDescriptor::choice`. - ParamKind::Enum { variants } => { + // Bound by reference: a descriptor's variants became an + // owned `Vec` when descriptors stopped being `&'static`, + // and this arm only ever reads the length. + ParamKind::Enum { ref variants } => { if variants.len() > 1 { 1.0 } else { diff --git a/core/dr-gpu/tests/frame_budget.rs b/core/dr-gpu/tests/frame_budget.rs index 3c23080..ce8bb26 100644 --- a/core/dr-gpu/tests/frame_budget.rs +++ b/core/dr-gpu/tests/frame_budget.rs @@ -282,7 +282,10 @@ fn full_point_chain() -> EditGraph { p.default + (far - p.default) * 0.25 } ParamKind::Bool => 1.0, - ParamKind::Enum { variants } => { + // Bound by reference: a descriptor's variants became an + // owned `Vec` when descriptors stopped being `&'static`, + // and this arm only ever reads the length. + ParamKind::Enum { ref variants } => { if variants.len() > 1 { 1.0 } else {