Skip to content

Commit

Permalink
fix lower_shadow: correctly create ElementRc
Browse files Browse the repository at this point in the history
I would love to add a clippy disallowed method for this, but it's a
generic type alias.
  • Loading branch information
Guiguiprim committed Jul 19, 2023
1 parent 0aae496 commit 1e8bc2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/compiler/passes/lower_shadows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn inject_shadow_element_in_repeated_element(

crate::object_tree::inject_element_as_repeated_element(
repeated_element,
ElementRc::new(RefCell::new(shadow_element)),
Element::make_rc(shadow_element),
);
}

Expand Down Expand Up @@ -174,7 +174,7 @@ pub fn lower_shadow_properties(
});
}

elem.borrow_mut().children.push(ElementRc::new(RefCell::new(shadow_elem)));
elem.borrow_mut().children.push(Element::make_rc(shadow_elem));
}
elem.borrow_mut().children.push(child);
}
Expand Down

0 comments on commit 1e8bc2e

Please sign in to comment.