mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: clippy
This commit is contained in:
parent
f7abe727d9
commit
e3f64188c2
5 changed files with 6 additions and 22 deletions
|
@ -6,16 +6,10 @@ use crate::{
|
|||
use reactive_graph::{
|
||||
owner::{Storage, StoredValue, SyncStorage},
|
||||
signal::ArcTrigger,
|
||||
traits::{
|
||||
DefinedAt, IsDisposed, ReadUntracked, Track, Trigger, UntrackableGuard,
|
||||
},
|
||||
traits::{DefinedAt, IsDisposed, ReadUntracked, Track, Trigger},
|
||||
unwrap_signal,
|
||||
};
|
||||
use std::{
|
||||
ops::{Deref, DerefMut, IndexMut},
|
||||
panic::Location,
|
||||
sync::Arc,
|
||||
};
|
||||
use std::{ops::IndexMut, panic::Location};
|
||||
|
||||
pub struct Field<T, S = SyncStorage>
|
||||
where
|
||||
|
|
|
@ -17,7 +17,6 @@ use std::{
|
|||
marker::PhantomData,
|
||||
ops::{DerefMut, IndexMut},
|
||||
panic::Location,
|
||||
sync::{Arc, RwLock},
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use reactive_graph::{
|
||||
owner::{Storage,SyncStorage, StoredValue},
|
||||
owner::{Storage, StoredValue, SyncStorage},
|
||||
signal::{
|
||||
guards::{Plain, ReadGuard},
|
||||
ArcTrigger,
|
||||
|
@ -41,6 +41,7 @@ impl TriggerMap {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
fn remove(&mut self, key: &StorePath) -> Option<ArcTrigger> {
|
||||
self.0.remove(key)
|
||||
}
|
||||
|
|
|
@ -13,11 +13,7 @@ use reactive_graph::{
|
|||
traits::{DefinedAt, UntrackableGuard},
|
||||
unwrap_signal,
|
||||
};
|
||||
use std::{
|
||||
iter,
|
||||
ops::Deref,
|
||||
sync::{Arc, RwLock},
|
||||
};
|
||||
use std::{iter, ops::Deref, sync::Arc};
|
||||
|
||||
pub trait StoreField<T>: Sized {
|
||||
type Reader: Deref<Target = T>;
|
||||
|
|
|
@ -12,13 +12,7 @@ use reactive_graph::{
|
|||
Writeable,
|
||||
},
|
||||
};
|
||||
use std::{
|
||||
iter,
|
||||
marker::PhantomData,
|
||||
ops::DerefMut,
|
||||
panic::Location,
|
||||
sync::{Arc, RwLock},
|
||||
};
|
||||
use std::{iter, marker::PhantomData, ops::DerefMut, panic::Location};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Subfield<Inner, Prev, T>
|
||||
|
|
Loading…
Reference in a new issue