Remove unnecessary wrapper

This commit is contained in:
Hanno Braun 2025-02-06 21:13:44 +01:00
parent 3c4daaadd1
commit 6db578a6b0

View File

@ -11,11 +11,8 @@ pub struct OperationView {
impl OperationView {
pub fn new(operation: AnyOp) -> Self {
let children = operation
.children()
.into_iter()
.map(|op| Self::new(AnyOp::new(op)))
.collect();
let children =
operation.children().into_iter().map(Self::new).collect();
Self {
operation,