From 25182df461072cb4048c21cdcfb33f6aa6e5aeef Mon Sep 17 00:00:00 2001 From: ytoku Date: Mon, 5 Sep 2022 01:44:38 +0900 Subject: [PATCH] Fix a deprecation message There's no Rgba::new method. Fixes #1782 --- src/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traits.rs b/src/traits.rs index 505bfe96d7..56daaa0ddf 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -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,