Skip to content

Commit

Permalink
Resolved Clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vallentin committed Jul 13, 2023
1 parent 2be4f86 commit fac3971
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions colorblast/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ impl From<[u8; 3]> for Color {
}

impl From<(u8, u8, u8, u8)> for Color {
// Requires Rust 1.71
#[allow(unknown_lints, clippy::tuple_array_conversions)]
#[inline]
fn from((r, g, b, a): (u8, u8, u8, u8)) -> Self {
Self([r, g, b, a])
Expand Down

0 comments on commit fac3971

Please sign in to comment.