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 std::future::Future;
|
||||
|
||||
|
||||
fn main() {}
|
||||
|
||||
const App: FC<()> = |cx| {
|
||||
// create a new future
|
||||
let mut fut = cx.use_hook(
|
||||
let _fut = cx.use_hook(
|
||||
|| {
|
||||
//
|
||||
async { loop {} }
|
||||
@@ -26,11 +26,11 @@ const App: 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!()
|
||||
};
|
||||
|
||||
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!()
|
||||
}
|
||||
Reference in new issue
Block a user