Skip to content

Commit

Permalink
Reorder attributes
Browse files Browse the repository at this point in the history
Derive helper attributes should be introduced before they are used.
  • Loading branch information
NicolasKlenert committed Mar 29, 2021
1 parent 481d20d commit 0dd92e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions palette/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ mod tests {
use crate::{Alpha, Hsl, Hsv, Hwb, Lab, Lch, Xyz, Yxy};
use crate::{FloatComponent, Limited};

#[derive(FromColorUnclamped, WithAlpha)]
#[palette(
skip_derives(Xyz, Luma),
white_point = "S::WhitePoint",
Expand All @@ -540,7 +541,6 @@ mod tests {
palette_internal,
palette_internal_not_base_type
)]
#[derive(FromColorUnclamped, WithAlpha)]
struct WithXyz<S: RgbSpace>(PhantomData<S>);

impl<S: RgbSpace> Clone for WithXyz<S> {
Expand Down Expand Up @@ -601,6 +601,7 @@ mod tests {
}
}

#[derive(Copy, Clone, FromColorUnclamped, WithAlpha)]
#[palette(
skip_derives(Lch, Luma),
white_point = "crate::white_point::E",
Expand All @@ -609,7 +610,6 @@ mod tests {
palette_internal,
palette_internal_not_base_type
)]
#[derive(Copy, Clone, FromColorUnclamped, WithAlpha)]
struct WithoutXyz<T: FloatComponent>(PhantomData<T>);

impl<T: FloatComponent> Limited for WithoutXyz<T> {
Expand Down

0 comments on commit 0dd92e5

Please sign in to comment.