mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +00:00
Remove unnecessary wrapper
This commit is contained in:
parent
3c4daaadd1
commit
6db578a6b0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user