Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cecton committed Nov 6, 2023
1 parent 38d45d9 commit aa788c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/yew/src/html/conversion/into_prop_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl IntoPropValue<VList> for ChildrenRenderer<VNode> {
impl<C: BaseComponent> IntoPropValue<VList> for VChild<C> {
#[inline]
fn into_prop_value(self) -> VList {
VList::from_iter([VNode::from(self)].into_iter())
VList::from_iter([VNode::from(self)])
}
}

Expand Down
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 @@ -65,7 +65,7 @@ impl VNode {
match *self {
Self::VList(ref mut m) => return Rc::make_mut(m),
_ => {
*self = VNode::VList(Rc::new(VList::from_iter([mem::take(self)].into_iter())));
*self = VNode::VList(Rc::new(VList::from_iter([mem::take(self)])));
}
}
}
Expand Down

0 comments on commit aa788c3

Please sign in to comment.