mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix unneeded body
This commit is contained in:
parent
9391b1c8ce
commit
f9f8edfb06
1 changed files with 2 additions and 6 deletions
|
@ -463,12 +463,8 @@ fn find_cargo_toml(path: &Path) -> Result<PathBuf> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let entities = match read_dir(path.join("does_not_exist")) {
|
let entities = match read_dir(path.join("does_not_exist")) {
|
||||||
Ok(entities) => {
|
Ok(entities) => entities,
|
||||||
entities
|
Err(e) => return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into()),
|
||||||
},
|
|
||||||
Err(e) => {
|
|
||||||
return Err(CargoTomlSearchFileSystemError(path_as_buf, e.to_string()).into())
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut valid_canditates = find_cargo_toml_in_child_dir(entities);
|
let mut valid_canditates = find_cargo_toml_in_child_dir(entities);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue