Clippy fixes (#618)
This commit is contained in:
parent
6b76e53bfa
commit
80b85f99ff
@ -694,7 +694,6 @@ pub fn setup_restarting_mgr_std<I, MT, OT, S>(
|
||||
>
|
||||
where
|
||||
I: Input,
|
||||
S: DeserializeOwned,
|
||||
MT: Monitor + Clone,
|
||||
OT: ObserversTuple<I, S> + DeserializeOwned,
|
||||
S: DeserializeOwned,
|
||||
|
@ -275,7 +275,7 @@ impl MapNoveltiesMetadata {
|
||||
#[serde(bound = "T: serde::de::DeserializeOwned")]
|
||||
pub struct MapFeedbackState<T>
|
||||
where
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned,
|
||||
T: PrimInt + Default + Copy + 'static + Serialize,
|
||||
{
|
||||
/// Contains information about untouched entries
|
||||
pub history_map: Vec<T>,
|
||||
|
@ -30,7 +30,7 @@ pub trait HashSetState<T> {
|
||||
#[serde(bound = "T: serde::de::DeserializeOwned")]
|
||||
pub struct NewHashFeedbackState<T>
|
||||
where
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned + Hash + Debug,
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + Hash + Debug,
|
||||
{
|
||||
/// Contains information about untouched entries
|
||||
pub hash_set: HashSet<T>,
|
||||
|
@ -195,7 +195,7 @@ where
|
||||
#[serde(bound = "CM: serde::de::DeserializeOwned")]
|
||||
pub struct StdCmpObserver<'a, CM>
|
||||
where
|
||||
CM: CmpMap + Serialize + DeserializeOwned,
|
||||
CM: CmpMap + Serialize,
|
||||
{
|
||||
cmp_map: OwnedRefMut<'a, CM>,
|
||||
size: Option<OwnedRefMut<'a, usize>>,
|
||||
|
@ -186,7 +186,7 @@ where
|
||||
#[allow(clippy::unsafe_derive_deserialize)]
|
||||
pub struct StdMapObserver<'a, T>
|
||||
where
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned,
|
||||
T: PrimInt + Default + Copy + 'static + Serialize,
|
||||
{
|
||||
map: OwnedSliceMut<'a, T>,
|
||||
initial: T,
|
||||
@ -393,7 +393,7 @@ where
|
||||
#[allow(clippy::unsafe_derive_deserialize)]
|
||||
pub struct ConstMapObserver<'a, T, const N: usize>
|
||||
where
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned,
|
||||
T: PrimInt + Default + Copy + 'static + Serialize,
|
||||
{
|
||||
map: OwnedSliceMut<'a, T>,
|
||||
initial: T,
|
||||
@ -587,7 +587,7 @@ where
|
||||
#[allow(clippy::unsafe_derive_deserialize)]
|
||||
pub struct VariableMapObserver<'a, T>
|
||||
where
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned,
|
||||
T: PrimInt + Default + Copy + 'static + Serialize,
|
||||
{
|
||||
map: OwnedSliceMut<'a, T>,
|
||||
size: OwnedRefMut<'a, usize>,
|
||||
@ -773,7 +773,7 @@ where
|
||||
#[serde(bound = "M: serde::de::DeserializeOwned")]
|
||||
pub struct HitcountsMapObserver<M>
|
||||
where
|
||||
M: Serialize + serde::de::DeserializeOwned,
|
||||
M: Serialize,
|
||||
{
|
||||
base: M,
|
||||
}
|
||||
@ -957,7 +957,7 @@ where
|
||||
#[allow(clippy::unsafe_derive_deserialize)]
|
||||
pub struct MultiMapObserver<'a, T>
|
||||
where
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned + Debug,
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + Debug,
|
||||
{
|
||||
maps: Vec<OwnedSliceMut<'a, T>>,
|
||||
intervals: IntervalTree<usize, usize>,
|
||||
@ -1187,7 +1187,7 @@ where
|
||||
#[allow(clippy::unsafe_derive_deserialize)]
|
||||
pub struct OwnedMapObserver<T>
|
||||
where
|
||||
T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned,
|
||||
T: PrimInt + Default + Copy + 'static + Serialize,
|
||||
{
|
||||
map: Vec<T>,
|
||||
initial: T,
|
||||
|
@ -238,7 +238,7 @@ impl Named for TimeObserver {
|
||||
#[serde(bound = "T: serde::de::DeserializeOwned")]
|
||||
pub struct ListObserver<'a, T>
|
||||
where
|
||||
T: Debug + Serialize + serde::de::DeserializeOwned,
|
||||
T: Debug + Serialize,
|
||||
{
|
||||
name: String,
|
||||
/// The list
|
||||
|
Loading…
x
Reference in New Issue
Block a user