[librsvg: 9/13] Allow names like CairoARGB
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 9/13] Allow names like CairoARGB
- Date: Mon, 12 Apr 2021 16:15:01 +0000 (UTC)
commit 4e5000533413889acc4a659735eb4c3758568602
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Apr 12 10:47:10 2021 -0500
Allow names like CairoARGB
src/surface_utils/mod.rs | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/surface_utils/mod.rs b/src/surface_utils/mod.rs
index 3e4f5fee..53bbd00b 100644
--- a/src/surface_utils/mod.rs
+++ b/src/surface_utils/mod.rs
@@ -13,14 +13,17 @@ pub mod srgb;
#[cfg(target_endian = "little")]
use rgb::alt::BGRA8;
#[cfg(target_endian = "little")]
+#[allow(clippy::upper_case_acronyms)]
pub type CairoARGB = BGRA8;
#[cfg(target_endian = "big")]
use rgb::alt::ARGB8;
#[cfg(target_endian = "big")]
+#[allow(clippy::upper_case_acronyms)]
pub type CairoARGB = ARGB8;
/// Analogous to `rgb::FromSlice`, to convert from `[T]` to `[CairoARGB]`
+#[allow(clippy::upper_case_acronyms)]
pub trait AsCairoARGB<T: Copy> {
/// Reinterpret slice as `CairoARGB` pixels.
fn as_cairo_argb(&self) -> &[CairoARGB];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]