mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Simplify
This commit is contained in:
parent
40cbeb5b3d
commit
9d3e616f82
6 changed files with 33 additions and 29 deletions
|
@ -67,7 +67,7 @@ impl ProjectManifest {
|
|||
if path.file_name().unwrap_or_default() == "Cargo.toml" {
|
||||
return Ok(ProjectManifest::CargoToml(path));
|
||||
}
|
||||
bail!("project root must point to Cargo.toml or rust-project.json: {}", path.display())
|
||||
bail!("project root must point to Cargo.toml or rust-project.json: {}", path.display());
|
||||
}
|
||||
|
||||
pub fn discover_single(path: &AbsPath) -> Result<ProjectManifest> {
|
||||
|
@ -78,7 +78,7 @@ impl ProjectManifest {
|
|||
};
|
||||
|
||||
if !candidates.is_empty() {
|
||||
bail!("more than one project")
|
||||
bail!("more than one project");
|
||||
}
|
||||
Ok(res)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue