mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
discard when the path is invalid utf8 symbol.
This commit is contained in:
parent
1e61ed723f
commit
8d4ecc169f
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ impl NotifyActor {
|
||||||
let depth = entry.depth();
|
let depth = entry.depth();
|
||||||
let is_dir = entry.file_type().is_dir();
|
let is_dir = entry.file_type().is_dir();
|
||||||
let is_file = entry.file_type().is_file();
|
let is_file = entry.file_type().is_file();
|
||||||
let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
|
let abs_path = AbsPathBuf::try_from(entry.into_path()).ok()?;
|
||||||
if depth < 2 && is_dir {
|
if depth < 2 && is_dir {
|
||||||
self.send(make_message(abs_path.clone()));
|
self.send(make_message(abs_path.clone()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue