Skip to content

Commit

Permalink
Rc::new
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Oct 28, 2023
1 parent c0e5aee commit e9e1bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yew/src/virtual_dom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl From<IndexMap<&'static str, AttrValue>> for Attributes {
.into_iter()
.map(|(k, v)| (AttrValue::Static(k), (AttributeOrProperty::Attribute(v))))
.collect();
Self::IndexMap(v)
Self::IndexMap(Rc::new(v))
}
}

Expand Down

0 comments on commit e9e1bb7

Please sign in to comment.