Skip to content

Commit

Permalink
Remove unnecessary Component bound on Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
okaneco committed Apr 4, 2021
1 parent dd51854 commit a1ee6a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions palette/src/alpha/alpha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<C, T: Component> Alpha<C, T> {

impl<C, T> PartialEq for Alpha<C, T>
where
T: Component + PartialEq,
T: PartialEq,
C: PartialEq,
{
fn eq(&self, other: &Self) -> bool {
Expand All @@ -56,7 +56,7 @@ where

impl<C, T> Eq for Alpha<C, T>
where
T: Component + Eq,
T: Eq,
C: Eq,
{
}
Expand Down Expand Up @@ -232,7 +232,7 @@ impl<C: Default, T: Component> Default for Alpha<C, T> {
impl<C, T> AbsDiffEq for Alpha<C, T>
where
C: AbsDiffEq<Epsilon = T::Epsilon>,
T: AbsDiffEq + Component,
T: AbsDiffEq,
T::Epsilon: Clone,
{
type Epsilon = T::Epsilon;
Expand All @@ -250,7 +250,7 @@ where
impl<C, T> RelativeEq for Alpha<C, T>
where
C: RelativeEq<Epsilon = T::Epsilon>,
T: RelativeEq + Component,
T: RelativeEq,
T::Epsilon: Clone,
{
fn default_max_relative() -> Self::Epsilon {
Expand All @@ -272,7 +272,7 @@ where
impl<C, T> UlpsEq for Alpha<C, T>
where
C: UlpsEq<Epsilon = T::Epsilon>,
T: UlpsEq + Component,
T: UlpsEq,
T::Epsilon: Clone,
{
fn default_max_ulps() -> u32 {
Expand Down

0 comments on commit a1ee6a1

Please sign in to comment.