From b9fbb3da1740ddef0ab5d9dcbb75e50b92ba0c09 Mon Sep 17 00:00:00 2001 From: nmio Date: Sat, 29 Feb 2020 13:14:31 +0000 Subject: lint warn fix --- crates/rust-analyzer/src/main_loop.rs | 6 ++---- 1 file 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( Err(e) => { log::error!("loading workspace failed: {:?}", e); - if let Some(ra_project_model::CargoTomlNotFoundError { - searched_at: _, - reason: _, - }) = e.downcast_ref() + if let Some(ra_project_model::CargoTomlNotFoundError { .. }) = + e.downcast_ref() { if !feature_flags.get("notifications.cargo-toml-not-found") { continue; -- cgit v1.2.3