diff --git a/core/dr-pipeline/src/mask.rs b/core/dr-pipeline/src/mask.rs index 86b2db2..29f752b 100644 --- a/core/dr-pipeline/src/mask.rs +++ b/core/dr-pipeline/src/mask.rs @@ -1500,7 +1500,7 @@ mod tests { let ids: Vec<&str> = layer.capabilities().iter().map(|c| c.id.0).collect(); let global = crate::ops::chain(); - let local_means_something = |op: &Box| { + let local_means_something = |op: &dyn Operation| { op.detail().is_none() && !op .descriptor() @@ -1512,14 +1512,15 @@ mod tests { let id = op.descriptor().id.0; assert_eq!( ids.contains(&id), - local_means_something(op), + local_means_something(op.as_ref()), "{id} is offered as a local adjustment but cannot meaningfully \ be one, or is an ordinary point operation and has gone \ missing from a layer" ); } assert!( - ids.len() < global.len() || global.iter().all(local_means_something), + ids.len() < global.len() + || global.iter().all(|op| local_means_something(op.as_ref())), "the filter dropped nothing, so either it is not running or the \ chain has nothing left that a layer cannot carry" );