Skip to content

Commit ba00c41

Browse files
Merge #207
207: Reorder attributes r=Ogeon a=NicolasKlenert As mentioned in #205 [(in this comment)](#205 (review)) using derive attributes before them being introduced results in an error in the new nightly build. This PR reorders the attributes. Co-authored-by: Nicolas Klenert <klenert.nicolas@gmail.com>
2 parents 481d20d + 0dd92e5 commit ba00c41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

palette/src/convert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ mod tests {
532532
use crate::{Alpha, Hsl, Hsv, Hwb, Lab, Lch, Xyz, Yxy};
533533
use crate::{FloatComponent, Limited};
534534

535+
#[derive(FromColorUnclamped, WithAlpha)]
535536
#[palette(
536537
skip_derives(Xyz, Luma),
537538
white_point = "S::WhitePoint",
@@ -540,7 +541,6 @@ mod tests {
540541
palette_internal,
541542
palette_internal_not_base_type
542543
)]
543-
#[derive(FromColorUnclamped, WithAlpha)]
544544
struct WithXyz<S: RgbSpace>(PhantomData<S>);
545545

546546
impl<S: RgbSpace> Clone for WithXyz<S> {
@@ -601,6 +601,7 @@ mod tests {
601601
}
602602
}
603603

604+
#[derive(Copy, Clone, FromColorUnclamped, WithAlpha)]
604605
#[palette(
605606
skip_derives(Lch, Luma),
606607
white_point = "crate::white_point::E",
@@ -609,7 +610,6 @@ mod tests {
609610
palette_internal,
610611
palette_internal_not_base_type
611612
)]
612-
#[derive(Copy, Clone, FromColorUnclamped, WithAlpha)]
613613
struct WithoutXyz<T: FloatComponent>(PhantomData<T>);
614614

615615
impl<T: FloatComponent> Limited for WithoutXyz<T> {

0 commit comments

Comments
 (0)