This commit is contained in:
Lukas Wirth 2022-10-19 21:17:11 +02:00
parent 40cbeb5b3d
commit 9d3e616f82
6 changed files with 33 additions and 29 deletions

View file

@ -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)
}