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
|
|
@ -135,6 +135,7 @@ pub struct Drm {
|
|||
}
|
||||
|
||||
impl Drm {
|
||||
#[cfg_attr(not(feature = "it"), allow(dead_code))]
|
||||
pub fn open_existing(fd: OwnedFd) -> Self {
|
||||
Self { fd: Rc::new(fd) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue