Skip to content

Commit

Permalink
Remove Settings bound from settings::Map key
Browse files Browse the repository at this point in the history
  • Loading branch information
inikulin committed Jan 21, 2024
1 parent 6844df3 commit 4bc692d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions foundations/src/settings/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ use std::ops::{Deref, DerefMut};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Map<K, V>(#[serde(bound = "")] IndexMap<K, V>)
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings;

impl<K, V> Default for Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
fn default() -> Self {
Expand All @@ -43,7 +43,7 @@ where

impl<K, V> Deref for Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
type Target = IndexMap<K, V>;
Expand All @@ -55,7 +55,7 @@ where

impl<K, V> DerefMut for Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
fn deref_mut(&mut self) -> &mut Self::Target {
Expand All @@ -65,7 +65,7 @@ where

impl<K, V> From<Map<K, V>> for IndexMap<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
fn from(value: Map<K, V>) -> Self {
Expand All @@ -75,7 +75,7 @@ where

impl<K, V> From<IndexMap<K, V>> for Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
fn from(value: IndexMap<K, V>) -> Self {
Expand All @@ -85,7 +85,7 @@ where

impl<K, V> FromIterator<(K, V)> for Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
fn from_iter<I: IntoIterator<Item = (K, V)>>(iterable: I) -> Self {
Expand All @@ -95,7 +95,7 @@ where

impl<'a, K, V> IntoIterator for &'a Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
type Item = (&'a K, &'a V);
Expand All @@ -108,7 +108,7 @@ where

impl<'a, K, V> IntoIterator for &'a mut Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
type Item = (&'a K, &'a mut V);
Expand All @@ -121,7 +121,7 @@ where

impl<K, V> IntoIterator for Map<K, V>
where
K: Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
type Item = (K, V);
Expand All @@ -134,7 +134,7 @@ where

impl<K, V> Settings for Map<K, V>
where
K: Display + Eq + Hash + Settings + Clone + Serialize + DeserializeOwned + Debug + 'static,
K: Display + Eq + Hash + Clone + Serialize + DeserializeOwned + Debug + 'static,
V: Settings,
{
fn add_docs(
Expand Down

0 comments on commit 4bc692d

Please sign in to comment.