Skip to content

Commit 6b5ee6d

Browse files
committed
Allow clippy::missing_const_for_fn for into_data
See rust-lang/rust-clippy#9271, this is a bug in clippy
1 parent 1ffaf20 commit 6b5ee6d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/hsl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl Hsl {
5252

5353
#[must_use]
5454
#[inline(always)]
55+
#[allow(clippy::missing_const_for_fn)]
5556
pub fn into_data(self) -> Vec<[f32; 3]> {
5657
self.data
5758
}

src/linear_rgb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl LinearRgb {
4444

4545
#[must_use]
4646
#[inline(always)]
47+
#[allow(clippy::missing_const_for_fn)]
4748
pub fn into_data(self) -> Vec<[f32; 3]> {
4849
self.data
4950
}

src/rgb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ impl Rgb {
6666

6767
#[must_use]
6868
#[inline(always)]
69+
#[allow(clippy::missing_const_for_fn)]
6970
pub fn into_data(self) -> Vec<[f32; 3]> {
7071
self.data
7172
}

src/xyb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ impl Xyb {
3939

4040
#[must_use]
4141
#[inline(always)]
42+
#[allow(clippy::missing_const_for_fn)]
4243
pub fn into_data(self) -> Vec<[f32; 3]> {
4344
self.data
4445
}

0 commit comments

Comments
 (0)