fix formatting
This commit is contained in:
1 parent
a37b29947b
commit
8b5551e5d2
2 files changed
+3
-5
No files matched your search
@@ -302,8 +302,8 @@ pub fn partial_derive_state(_: TokenStream, input: TokenStream) -> TokenStream {
|
|||||||
|
|
||||||
// if a create function is defined, we don't generate one
|
// if a create function is defined, we don't generate one
|
||||||
// otherwise we generate a default one that uses the update function and the default constructor
|
// otherwise we generate a default one that uses the update function and the default constructor
|
||||||
let create_fn = (!has_create_fn).then(||{
|
let create_fn = (!has_create_fn).then(|| {
|
||||||
quote!{
|
quote! {
|
||||||
fn create<'a>(
|
fn create<'a>(
|
||||||
node_view: dioxus_native_core::prelude::NodeView<()>,
|
node_view: dioxus_native_core::prelude::NodeView<()>,
|
||||||
node: <Self::NodeDependencies as Dependancy>::ElementBorrowed<'a>,
|
node: <Self::NodeDependencies as Dependancy>::ElementBorrowed<'a>,
|
||||||
|
|||||||
@@ -131,9 +131,7 @@ fn native_core_is_okay() {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
rt.block_on(async {
|
rt.block_on(async {
|
||||||
let rdom = Arc::new(Mutex::new(RealDom::new([
|
let rdom = Arc::new(Mutex::new(RealDom::new([BlablaState::to_type_erased()])));
|
||||||
BlablaState::to_type_erased(),
|
|
||||||
])));
|
|
||||||
let mut dioxus_state = DioxusState::create(&mut *rdom.lock().unwrap());
|
let mut dioxus_state = DioxusState::create(&mut *rdom.lock().unwrap());
|
||||||
let mut dom = VirtualDom::new(app);
|
let mut dom = VirtualDom::new(app);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user