Skip to content

Commit

Permalink
feature soundness & clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza1311 committed Jul 19, 2022
1 parent c1280ac commit 8dac14b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions 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};

Expand Down Expand Up @@ -46,9 +46,7 @@ where
impl From<ListVariant> for Html {
fn from(variant: ListVariant) -> Html {
match variant.props {
Variants::Header(props) => {
VComp::new::<ListHeader>(props, None).into()
}
Variants::Header(props) => VComp::new::<ListHeader>(props, None).into(),
Variants::Item(props) => VComp::new::<ListItem>(props, None).into(),
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/yew/src/virtual_dom/vcomp.rs
Expand Up @@ -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;

Expand Down

0 comments on commit 8dac14b

Please sign in to comment.