From f9f8edfb0602baa6d7fae0704f02aef15ea25dd1 Mon Sep 17 00:00:00 2001 From: nmio Date: Thu, 27 Feb 2020 22:03:29 +0000 Subject: fix unneeded body --- crates/ra_project_model/src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crates/ra_project_model') 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 { } let entities = match read_dir(path.join("does_not_exist")) { - Ok(entities) => { - entities - }, - Err(e) => { - return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into()) - }, + Ok(entities) => entities, + Err(e) => return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into()), }; let mut valid_canditates = find_cargo_toml_in_child_dir(entities); -- cgit v1.2.3