diff options
author | nmio <[email protected]> | 2020-02-29 13:14:31 +0000 |
---|---|---|
committer | nmio <[email protected]> | 2020-02-29 13:14:31 +0000 |
commit | b9fbb3da1740ddef0ab5d9dcbb75e50b92ba0c09 (patch) | |
tree | 4a40bb4f1f1ce8ba2543dbd7be9513d796336edf | |
parent | e15424c1b7d5a82545fbb3744af3123a124053d5 (diff) |
lint warn fix
-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; |