diff --git a/packages/hooks/src/use_shared_state.rs b/packages/hooks/src/use_shared_state.rs index ee4fba134..df4549ed2 100644 --- a/packages/hooks/src/use_shared_state.rs +++ b/packages/hooks/src/use_shared_state.rs @@ -1,4 +1,4 @@ -use dioxus_core::{prelude::Context, AnyContext, Scope, ScopeId}; +use dioxus_core::{AnyContext, Scope, ScopeId}; use std::{ cell::{Cell, Ref, RefCell, RefMut}, collections::HashSet, diff --git a/packages/hooks/src/usecoroutine.rs b/packages/hooks/src/usecoroutine.rs index b51172a1c..f6cfc2cee 100644 --- a/packages/hooks/src/usecoroutine.rs +++ b/packages/hooks/src/usecoroutine.rs @@ -1,4 +1,4 @@ -use dioxus_core::{AnyContext, Context, Scope}; +use dioxus_core::{AnyContext, Scope}; use futures::Future; use std::{ cell::{Cell, RefCell}, diff --git a/packages/hooks/src/usemodel.rs b/packages/hooks/src/usemodel.rs index 003fa357c..b84bf3eb1 100644 --- a/packages/hooks/src/usemodel.rs +++ b/packages/hooks/src/usemodel.rs @@ -4,7 +4,7 @@ //! //! In these cases, we provide `use_model` - a convenient way of abstracting over some state and async functions. -use dioxus_core::prelude::{AnyContext, Context}; +use dioxus_core::prelude::AnyContext; use futures::Future; use std::{ cell::{Cell, Ref, RefCell, RefMut}, @@ -74,7 +74,7 @@ impl<'a, T: 'static> UseModel<'a, T> { (self.read(), self) } - pub fn start(&self, f: impl FnOnce() -> ModelTask) { + pub fn start(&self, _f: impl FnOnce() -> ModelTask) { todo!() } } @@ -82,8 +82,8 @@ impl<'a, T: 'static> UseModel<'a, T> { // keep a coroutine going pub fn use_model_coroutine<'a, T, F: Future + 'static>( cx: &dyn AnyContext<'a>, - model: UseModel, - f: impl FnOnce(AppModels) -> F, + _model: UseModel, + _f: impl FnOnce(AppModels) -> F, ) -> UseModelCoroutine { let cx = cx.get_scope(); cx.use_hook( diff --git a/packages/hooks/src/usestate2.rs b/packages/hooks/src/usestate2.rs index df778f0f1..6cffc8e95 100644 --- a/packages/hooks/src/usestate2.rs +++ b/packages/hooks/src/usestate2.rs @@ -1,11 +1,11 @@ -use dioxus_core::prelude::Context; -use std::{ - borrow::{Borrow, BorrowMut}, - cell::{Cell, Ref, RefCell, RefMut}, - fmt::{Debug, Display}, - ops::Not, - rc::Rc, -}; +// use dioxus_core::prelude::Context; +// use std::{ +// borrow::{Borrow, BorrowMut}, +// cell::{Cell, Ref, RefCell, RefMut}, +// fmt::{Debug, Display}, +// ops::Not, +// rc::Rc, +// }; // /// Store state between component renders! // ///