Ver Fonte

fix some unused items

Evan Almloff há 1 ano atrás
pai
commit
08475af221

+ 1 - 2
packages/router/src/contexts/router.rs

@@ -1,4 +1,3 @@
-use std::cell::{RefCell, RefMut};
 use std::{
     any::Any,
     collections::HashSet,
@@ -17,7 +16,7 @@ use crate::{
 
 /// An error that can occur when navigating.
 #[derive(Debug, Clone)]
-pub struct ExternalNavigationFailure(String);
+pub struct ExternalNavigationFailure(pub String);
 
 /// A function the router will call after every routing update.
 pub(crate) type RoutingCallback<R> =

+ 1 - 1
packages/signals/src/global.rs

@@ -13,7 +13,7 @@ use dioxus_core::{
 };
 use generational_box::{GenerationalRef, GenerationalRefMut};
 
-use crate::{selector, MappedSignal, ReadOnlySignal, Signal, Write};
+use crate::{MappedSignal, ReadOnlySignal, Signal, Write};
 
 /// A signal that can be accessed from anywhere in the application and created in a static
 pub struct GlobalSignal<T> {