Skip to content

Commit b9fbb3d

Browse files
committed
lint warn fix
1 parent e15424c commit b9fbb3d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/rust-analyzer/src/main_loop.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,8 @@ pub fn main_loop(
116116
Err(e) => {
117117
log::error!("loading workspace failed: {:?}", e);
118118

119-
if let Some(ra_project_model::CargoTomlNotFoundError {
120-
searched_at: _,
121-
reason: _,
122-
}) = e.downcast_ref()
119+
if let Some(ra_project_model::CargoTomlNotFoundError { .. }) =
120+
e.downcast_ref()
123121
{
124122
if !feature_flags.get("notifications.cargo-toml-not-found") {
125123
continue;

0 commit comments

Comments
 (0)