1
0
Fork 0
forked from wry/wry

all: fix clippy lints

This commit is contained in:
Julian Orth 2024-06-05 20:04:13 +02:00
parent 639961b1d4
commit c27e90b4e7
2 changed files with 4 additions and 0 deletions

View file

@ -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<Self>) -> Result<GbmBoMap, GbmError> {
self.map2(GBM_BO_TRANSFER_READ_WRITE)
}