We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7de094 + 8f3eecc commit 27fa563Copy full SHA for 27fa563
src/tools/rust-analyzer/crates/vfs-notify/src/lib.rs
@@ -222,7 +222,7 @@ impl NotifyActor {
222
let depth = entry.depth();
223
let is_dir = entry.file_type().is_dir();
224
let is_file = entry.file_type().is_file();
225
- let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
+ let abs_path = AbsPathBuf::try_from(entry.into_path()).ok()?;
226
if depth < 2 && is_dir {
227
self.send(make_message(abs_path.clone()));
228
}
0 commit comments