Skip to content

Commit

Permalink
Fix a deprecation message
Browse files Browse the repository at this point in the history
There's no Rgba::new method. Fixes #1782
  • Loading branch information
ytoku authored and fintelia committed Sep 4, 2022
1 parent a1ce569 commit 25182df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traits.rs
Expand Up @@ -265,7 +265,7 @@ pub trait Pixel: Copy + Clone {
/// If the pixel does not contain 4 channels the extra are ignored.
#[deprecated(
since = "0.24.0",
note = "Use the constructor of the pixel, for example `Rgba::new(r,g,b,a)` or `Pixel::from_slice`"
note = "Use the constructor of the pixel, for example `Rgba([r,g,b,a])` or `Pixel::from_slice`"
)]
fn from_channels(
a: Self::Subpixel,
Expand Down

0 comments on commit 25182df

Please sign in to comment.