From 741bcc46728f551f4594255ecb4bf24eb0dfc56e Mon Sep 17 00:00:00 2001 From: Francesca Frangipane Date: Thu, 10 May 2018 18:42:41 -0400 Subject: [PATCH] Correct privacy for Icon::to_cardinals (#510) --- CHANGELOG.md | 2 ++ src/platform/linux/x11/util/icon.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98a061ff..ccd2586d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +- `Icon::to_cardinals` is no longer public, since it was never supposed to be. + # Version 0.14.0 (2018-05-09) - Created the `Copy`, `Paste` and `Cut` `VirtualKeyCode`s and added support for them on X11 and Wayland diff --git a/src/platform/linux/x11/util/icon.rs b/src/platform/linux/x11/util/icon.rs index 7daea8e4..c19b52a8 100644 --- a/src/platform/linux/x11/util/icon.rs +++ b/src/platform/linux/x11/util/icon.rs @@ -17,7 +17,7 @@ impl Pixel { } impl Icon { - pub fn to_cardinals(&self) -> Vec { + pub(crate) fn to_cardinals(&self) -> Vec { assert_eq!(self.rgba.len() % PIXEL_SIZE, 0); let pixel_count = self.rgba.len() / PIXEL_SIZE; assert_eq!(pixel_count, (self.width * self.height) as usize);