it: silence dead_code warnings for test-only code
This commit is contained in:
parent
9101d1c757
commit
13aa6d7249
2 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ impl Color {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(not(feature = "it"), allow(dead_code))]
|
||||||
pub fn to_rgba_premultiplied(self) -> [u8; 4] {
|
pub fn to_rgba_premultiplied(self) -> [u8; 4] {
|
||||||
[to_u8(self.r), to_u8(self.g), to_u8(self.b), to_u8(self.a)]
|
[to_u8(self.r), to_u8(self.g), to_u8(self.b), to_u8(self.a)]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,7 @@ pub struct Drm {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drm {
|
impl Drm {
|
||||||
|
#[cfg_attr(not(feature = "it"), allow(dead_code))]
|
||||||
pub fn open_existing(fd: OwnedFd) -> Self {
|
pub fn open_existing(fd: OwnedFd) -> Self {
|
||||||
Self { fd: Rc::new(fd) }
|
Self { fd: Rc::new(fd) }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue