diff options
-rw-r--r-- | crates/ra_project_model/src/lib.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index f678bf5d6..ec91abf85 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs | |||
@@ -463,12 +463,8 @@ fn find_cargo_toml(path: &Path) -> Result<PathBuf> { | |||
463 | } | 463 | } |
464 | 464 | ||
465 | let entities = match read_dir(path.join("does_not_exist")) { | 465 | let entities = match read_dir(path.join("does_not_exist")) { |
466 | Ok(entities) => { | 466 | Ok(entities) => entities, |
467 | entities | 467 | Err(e) => return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into()), |
468 | }, | ||
469 | Err(e) => { | ||
470 | return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into()) | ||
471 | }, | ||
472 | }; | 468 | }; |
473 | 469 | ||
474 | let mut valid_canditates = find_cargo_toml_in_child_dir(entities); | 470 | let mut valid_canditates = find_cargo_toml_in_child_dir(entities); |