diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index ec91abf85f..c4d67d3dcf 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs @@ -462,7 +462,7 @@ fn find_cargo_toml(path: &Path) -> Result { return Ok(p); } - let entities = match read_dir(path.join("does_not_exist")) { + let entities = match read_dir(path) { Ok(entities) => entities, Err(e) => return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into()), };