1
0
Fork 0
forked from wry/wry

autocommit 2022-03-11 20:04:41 CET

This commit is contained in:
Julian Orth 2022-03-11 20:04:41 +01:00
parent 0ae73ab9c4
commit eb1d500561
10 changed files with 93 additions and 75 deletions

View file

@ -284,6 +284,7 @@ impl<'a> UdevListEntry<'a> {
macro_rules! strfn {
($f:ident, $raw:ident) => {
#[allow(dead_code)]
pub fn $f(&self) -> Option<&CStr> {
let res = unsafe { $raw(self.device) };
if res.is_null() {