Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize VTag construction, memory footprint and patching #1947

Merged
merged 12 commits into from
Jul 18, 2021
Prev Previous commit
Next Next commit
yew/vnode: restore == for VTag comparison
  • Loading branch information
bakape committed Jul 18, 2021
commit 1ae7871a8431a6c906d0394dcddca5fed78e4a9e
2 changes: 1 addition & 1 deletion packages/yew/src/virtual_dom/vnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl fmt::Debug for VNode {
impl PartialEq for VNode {
fn eq(&self, other: &VNode) -> bool {
match (self, other) {
(VNode::VTag(a), VNode::VTag(b)) => a.eq(b),
(VNode::VTag(a), VNode::VTag(b)) => a == b,
(VNode::VText(a), VNode::VText(b)) => a == b,
(VNode::VList(a), VNode::VList(b)) => a == b,
(VNode::VRef(a), VNode::VRef(b)) => a == b,
Expand Down