diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index bcfeb6442..3d147d449 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -116,10 +116,8 @@ pub fn main_loop( | |||
116 | Err(e) => { | 116 | Err(e) => { |
117 | log::error!("loading workspace failed: {:?}", e); | 117 | log::error!("loading workspace failed: {:?}", e); |
118 | 118 | ||
119 | if let Some(ra_project_model::CargoTomlNotFoundError { | 119 | if let Some(ra_project_model::CargoTomlNotFoundError { .. }) = |
120 | searched_at: _, | 120 | e.downcast_ref() |
121 | reason: _, | ||
122 | }) = e.downcast_ref() | ||
123 | { | 121 | { |
124 | if !feature_flags.get("notifications.cargo-toml-not-found") { | 122 | if !feature_flags.get("notifications.cargo-toml-not-found") { |
125 | continue; | 123 | continue; |