wip: cargo fix
This commit is contained in:
1 parent
fd03b9d252
commit
beceda511c
6 files changed
+11
-10
No files matched your search
@@ -1,13 +1,13 @@
|
|||||||
use std::pin::Pin;
|
|
||||||
|
|
||||||
use dioxus_core::prelude::*;
|
use dioxus_core::prelude::*;
|
||||||
use std::future::Future;
|
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
||||||
const App: FC<()> = |cx| {
|
const App: FC<()> = |cx| {
|
||||||
// create a new future
|
// create a new future
|
||||||
let mut fut = cx.use_hook(
|
let _fut = cx.use_hook(
|
||||||
|| {
|
|| {
|
||||||
//
|
//
|
||||||
async { loop {} }
|
async { loop {} }
|
||||||
@@ -26,11 +26,11 @@ const App: FC<()> = |cx| {
|
|||||||
const Task: FC<()> = |cx| {
|
const Task: FC<()> = |cx| {
|
||||||
//
|
//
|
||||||
|
|
||||||
let s = cx.use_task(|| async { "hello world".to_string() });
|
let _s = cx.use_task(|| async { "hello world".to_string() });
|
||||||
|
|
||||||
todo!()
|
todo!()
|
||||||
};
|
};
|
||||||
|
|
||||||
fn use_mut<P, T>(cx: Context<P>, f: impl FnOnce() -> T) -> &mut T {
|
fn use_mut<P, T>(_cx: Context<P>, _f: impl FnOnce() -> T) -> &mut T {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
||||||
use dioxus_core::prelude::*;
|
use dioxus_core::prelude::*;
|
||||||
use dioxus_core::*;
|
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
struct AppProps {
|
struct AppProps {
|
||||||
@@ -61,7 +61,7 @@ fn ChildItem<'a>(cx: Context<'a, ChildProps>) -> VNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl PartialEq for ChildProps {
|
impl PartialEq for ChildProps {
|
||||||
fn eq(&self, other: &Self) -> bool {
|
fn eq(&self, _other: &Self) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use dioxus_core::prelude::*;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ impl BasicElement for div {
|
|||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn new(factory: Factory) -> Self {
|
fn new(_factory: Factory) -> Self {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#![allow(non_snake_case, dead_code, unused_must_use, unreachable_code)]
|
||||||
//! Dioxus Core
|
//! Dioxus Core
|
||||||
//! ----------
|
//! ----------
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use dioxus_core::prelude::*;
|
|
||||||
// type VirtualNode = VNode;
|
// type VirtualNode = VNode;
|
||||||
|
|
||||||
/// Test a basic usage of a virtual dom + text renderer combo
|
/// Test a basic usage of a virtual dom + text renderer combo
|
||||||
|
|||||||
Reference in new issue
Block a user