diff --git a/src/theme.rs b/src/theme.rs index 1fdda2db..6089adca 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -80,6 +80,7 @@ impl Color { } } + #[cfg_attr(not(feature = "it"), allow(dead_code))] pub fn from_rgba_premultiplied(r: u8, g: u8, b: u8, a: u8) -> Self { Self { r: to_f32(r), @@ -137,6 +138,7 @@ impl Color { ] } + #[cfg_attr(not(feature = "it"), allow(dead_code))] pub fn and_then(self, other: &Color) -> Color { Color { r: self.r * (1.0 - other.a) + other.r, diff --git a/src/video/gbm.rs b/src/video/gbm.rs index 3f34b808..8cf8cbb9 100644 --- a/src/video/gbm.rs +++ b/src/video/gbm.rs @@ -156,6 +156,7 @@ impl GbmBoMap { &*self.data } + #[cfg_attr(not(feature = "it"), allow(dead_code))] pub fn data_ptr(&self) -> *mut u8 { self.data as _ } @@ -306,6 +307,7 @@ impl GbmBo { self.map2(GBM_BO_TRANSFER_READ) } + #[cfg_attr(not(feature = "it"), allow(dead_code))] pub fn map_write(self: &Rc) -> Result { self.map2(GBM_BO_TRANSFER_READ_WRITE) }