mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Update deps
This commit is contained in:
@@ -22,8 +22,8 @@ macro_rules! watch_attr {
|
||||
let mut path = self.$item.clone();
|
||||
path.push($attr_name);
|
||||
if let Some(path) = path.to_str() {
|
||||
let mut inotify = inotify::Inotify::init()?;
|
||||
inotify.add_watch(path, inotify::WatchMask::CLOSE_WRITE)
|
||||
let inotify = inotify::Inotify::init()?;
|
||||
inotify.watches().add(path, inotify::WatchMask::CLOSE_WRITE)
|
||||
.map_err(|e| {
|
||||
if e.kind() == std::io::ErrorKind::NotFound {
|
||||
PlatformError::AttrNotFound(format!("{}", $attr_name))
|
||||
|
||||
Reference in New Issue
Block a user