You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asked my AI buddy, and he's blaming notify/src/inotify.rs:
It seems that the parsing is failing because the function is expecting the process name to be enclosed in parentheses, which it isn't in your case.
You could modify this function to be more lenient in its parsing. For example:
fn parse_stat(stat: &str) -> Result<(pid_t, String)> {
let mut s = stat.split_whitespace();
let pid = s
.next()
.ok_or_else(|| Error::generic("unable to parse stat"))?
.parse()
.map_err(|_| Error::generic("unable to parse stat"))?;
let name = s
.next()
.ok_or_else(|| Error::generic("unable to parse stat"))?
.to_string();
Ok((pid, name))
}
The text was updated successfully, but these errors were encountered:
System details
Linux, Rust 1.82, Notify 7.0.0.
Get many of these warnings:
Asked my AI buddy, and he's blaming
notify/src/inotify.rs
:The text was updated successfully, but these errors were encountered: