diff --git a/examples/nested_list/src/list.rs b/examples/nested_list/src/list.rs index f14ac3280cc..53c2101945e 100644 --- a/examples/nested_list/src/list.rs +++ b/examples/nested_list/src/list.rs @@ -1,6 +1,6 @@ use std::rc::Rc; -use yew::html::{ChildrenRenderer, NodeRef}; +use yew::html::ChildrenRenderer; use yew::prelude::*; use yew::virtual_dom::{VChild, VComp}; @@ -46,9 +46,7 @@ where impl From for Html { fn from(variant: ListVariant) -> Html { match variant.props { - Variants::Header(props) => { - VComp::new::(props, None).into() - } + Variants::Header(props) => VComp::new::(props, None).into(), Variants::Item(props) => VComp::new::(props, None).into(), } } diff --git a/packages/yew/src/virtual_dom/vcomp.rs b/packages/yew/src/virtual_dom/vcomp.rs index 4be0ea93e03..a038b5d3411 100644 --- a/packages/yew/src/virtual_dom/vcomp.rs +++ b/packages/yew/src/virtual_dom/vcomp.rs @@ -15,10 +15,10 @@ use crate::dom_bundle::BSubtree; #[cfg(feature = "hydration")] use crate::dom_bundle::Fragment; use crate::html::BaseComponent; -#[cfg(feature = "csr")] -use crate::html::Scoped; #[cfg(any(feature = "ssr", feature = "csr"))] -use crate::html::{AnyScope, NodeRef, Scope}; +use crate::html::{AnyScope, Scope}; +#[cfg(feature = "csr")] +use crate::html::{NodeRef, Scoped}; #[cfg(feature = "ssr")] use crate::platform::io::BufWriter;