chore: clippy

This commit is contained in:
Greg Johnston 2024-07-24 08:15:32 -04:00
parent f7abe727d9
commit e3f64188c2
5 changed files with 6 additions and 22 deletions

View file

@ -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

View file

@ -17,7 +17,6 @@ use std::{
marker::PhantomData,
ops::{DerefMut, IndexMut},
panic::Location,
sync::{Arc, RwLock},
};
#[derive(Debug)]

View file

@ -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)
}

View file

@ -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>;

View file

@ -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>