Update deps

This commit is contained in:
Luke D. Jones
2023-06-14 20:30:42 +12:00
parent 3a18506510
commit cdc42193d1
6 changed files with 181 additions and 172 deletions

View File

@@ -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))