Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/project-model/src/lib.rs')
| -rw-r--r-- | crates/project-model/src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/project-model/src/lib.rs b/crates/project-model/src/lib.rs index 21a993c5a5..436af64cf1 100644 --- a/crates/project-model/src/lib.rs +++ b/crates/project-model/src/lib.rs @@ -48,12 +48,12 @@ mod tests; use std::{ fmt, - fs::{self, read_dir, ReadDir}, + fs::{self, ReadDir, read_dir}, io, process::Command, }; -use anyhow::{bail, format_err, Context}; +use anyhow::{Context, bail, format_err}; use paths::{AbsPath, AbsPathBuf, Utf8PathBuf}; use rustc_hash::FxHashSet; @@ -102,7 +102,9 @@ impl ProjectManifest { if path.extension().unwrap_or_default() == "rs" { return Ok(ProjectManifest::CargoScript(path)); } - bail!("project root must point to a Cargo.toml, rust-project.json or <script>.rs file: {path}"); + bail!( + "project root must point to a Cargo.toml, rust-project.json or <script>.rs file: {path}" + ); } pub fn discover_single(path: &AbsPath) -> anyhow::Result<ProjectManifest> { |