Skip to content

Commit f9f8edf

Browse files
committed
fix unneeded body
1 parent 9391b1c commit f9f8edf

File tree

1 file changed

+2
-6
lines changed
  • crates/ra_project_model/src

1 file changed

+2
-6
lines changed

crates/ra_project_model/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,8 @@ fn find_cargo_toml(path: &Path) -> Result<PathBuf> {
463463
}
464464

465465
let entities = match read_dir(path.join("does_not_exist")) {
466-
Ok(entities) => {
467-
entities
468-
},
469-
Err(e) => {
470-
return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into())
471-
},
466+
Ok(entities) => entities,
467+
Err(e) => return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into()),
472468
};
473469

474470
let mut valid_canditates = find_cargo_toml_in_child_dir(entities);

0 commit comments

Comments
 (0)