Browse Source

chore: remove unnecessary import

Jonathan Kelley 4 years ago
parent
commit
fb0c6d2
1 changed files with 1 additions and 4 deletions
  1. 1 4
      packages/core/src/component.rs

+ 1 - 4
packages/core/src/component.rs

@@ -44,7 +44,6 @@ pub fn fc_to_builder<T: Properties>(_: FC<T>) -> T::Builder {
     T::builder()
     T::builder()
 }
 }
 
 
-use crate::nodebuilder::LazyNodes;
 /// Create inline fragments
 /// Create inline fragments
 ///
 ///
 /// Fragments capture a series of children without rendering extra nodes.
 /// Fragments capture a series of children without rendering extra nodes.
@@ -54,7 +53,5 @@ use crate::nodebuilder::LazyNodes;
 use crate::prelude::*;
 use crate::prelude::*;
 #[allow(non_upper_case_globals, non_snake_case)]
 #[allow(non_upper_case_globals, non_snake_case)]
 pub fn Fragment<'a>(cx: Context<'a, ()>) -> VNode<'a> {
 pub fn Fragment<'a>(cx: Context<'a, ()>) -> VNode<'a> {
-    cx.render(LazyNodes::new(move |f| {
-        f.fragment_from_iter(cx.children())
-    }))
+    cx.render(LazyNodes::new(move |f| f.fragment_from_iter(cx.children())))
 }
 }