mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-11 13:28:28 +00:00
Remove unnecessary wrapper
This commit is contained in:
parent
3c4daaadd1
commit
6db578a6b0
@ -11,11 +11,8 @@ pub struct OperationView {
|
|||||||
|
|
||||||
impl OperationView {
|
impl OperationView {
|
||||||
pub fn new(operation: AnyOp) -> Self {
|
pub fn new(operation: AnyOp) -> Self {
|
||||||
let children = operation
|
let children =
|
||||||
.children()
|
operation.children().into_iter().map(Self::new).collect();
|
||||||
.into_iter()
|
|
||||||
.map(|op| Self::new(AnyOp::new(op)))
|
|
||||||
.collect();
|
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
operation,
|
operation,
|
||||||
|
Loading…
Reference in New Issue
Block a user