udev: accept [u8] instead of str
This commit is contained in:
parent
ff177a0721
commit
37a0bd451b
2 changed files with 3 additions and 3 deletions
|
|
@ -218,7 +218,7 @@ impl UdevMonitor {
|
|||
|
||||
pub fn add_match_subsystem_devtype(
|
||||
&self,
|
||||
subsystem: Option<&str>,
|
||||
subsystem: Option<&[u8]>,
|
||||
devtype: Option<&str>,
|
||||
) -> Result<(), UdevError> {
|
||||
let subsystem = subsystem.map(|s| s.into_ustr());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue