chore: remove unnecessary import
This commit is contained in:
1 parent
63bbc38f3f
commit
fb0c6d2ea4
1 file changed
+1
-4
@@ -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| {
|
cx.render(LazyNodes::new(move |f| f.fragment_from_iter(cx.children())))
|
||||||
f.fragment_from_iter(cx.children())
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user