summaryrefslogtreecommitdiff
path: root/cli/util/fs.rs
diff options
context:
space:
mode:
authorlinbingquan <695601626@qq.com>2022-12-18 06:20:15 +0800
committerGitHub <noreply@github.com>2022-12-17 23:20:15 +0100
commitf46df3e35940fc78163945eed33e58fafed0b06b (patch)
treec22233bf2019a254045ad0af533225d3f02a402f /cli/util/fs.rs
parentf2c9cc500c84a3c6051823cd3ae33d6b4c1f6266 (diff)
chore: update to Rust 1.66.0 (#17078)
Diffstat (limited to 'cli/util/fs.rs')
-rw-r--r--cli/util/fs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/util/fs.rs b/cli/util/fs.rs
index 40dfafdd8..cb8a4d369 100644
--- a/cli/util/fs.rs
+++ b/cli/util/fs.rs
@@ -160,7 +160,7 @@ pub fn resolve_from_cwd(path: &Path) -> Result<PathBuf, AnyError> {
cwd.join(path)
};
- Ok(normalize_path(&resolved_path))
+ Ok(normalize_path(resolved_path))
}
/// Collects file paths that satisfy the given predicate, by recursively walking `files`.
@@ -280,7 +280,7 @@ pub fn collect_specifiers(
} else {
root_path.join(path)
};
- let p = normalize_path(&p);
+ let p = normalize_path(p);
if p.is_dir() {
let test_files = file_collector.collect_files(&[p])?;
let mut test_files_as_urls = test_files