mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Slightly quieter fatal panics
This commit is contained in:
parent
e3e31ce199
commit
bb60c21885
2 changed files with 22 additions and 13 deletions
|
@ -103,7 +103,10 @@ impl NotifyActor {
|
|||
let (watcher_sender, watcher_receiver) = unbounded();
|
||||
let watcher = log_notify_error(RecommendedWatcher::new(
|
||||
move |event| {
|
||||
watcher_sender.send(event).unwrap();
|
||||
// we don't care about the error. If sending fails that usually
|
||||
// means we were dropped, so unwrapping will just add to the
|
||||
// panic noise.
|
||||
_ = watcher_sender.send(event);
|
||||
},
|
||||
Config::default(),
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue