aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model
diff options
context:
space:
mode:
authornmio <[email protected]>2020-02-27 22:03:29 +0000
committernmio <[email protected]>2020-02-27 22:03:29 +0000
commitf9f8edfb0602baa6d7fae0704f02aef15ea25dd1 (patch)
tree356a20e18f96687363819a922ca0ddff225eb92d /crates/ra_project_model
parent9391b1c8ceb96e07e4553014cb3b543793ebf717 (diff)
fix unneeded body
Diffstat (limited to 'crates/ra_project_model')
-rw-r--r--crates/ra_project_model/src/lib.rs8
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);