summaryrefslogtreecommitdiff
path: root/cli/npm/resolvers/mod.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/npm/resolvers/mod.rs
parentf2c9cc500c84a3c6051823cd3ae33d6b4c1f6266 (diff)
chore: update to Rust 1.66.0 (#17078)
Diffstat (limited to 'cli/npm/resolvers/mod.rs')
-rw-r--r--cli/npm/resolvers/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/resolvers/mod.rs b/cli/npm/resolvers/mod.rs
index a9c459d12..0f1ed5d85 100644
--- a/cli/npm/resolvers/mod.rs
+++ b/cli/npm/resolvers/mod.rs
@@ -355,7 +355,7 @@ impl RequireNpmResolver for NpmPackageResolver {
fn in_npm_package(&self, path: &Path) -> bool {
let specifier =
- match ModuleSpecifier::from_file_path(&path.to_path_buf().clean()) {
+ match ModuleSpecifier::from_file_path(path.to_path_buf().clean()) {
Ok(p) => p,
Err(_) => return false,
};
@@ -370,7 +370,7 @@ impl RequireNpmResolver for NpmPackageResolver {
}
fn path_to_specifier(path: &Path) -> Result<ModuleSpecifier, AnyError> {
- match ModuleSpecifier::from_file_path(&path.to_path_buf().clean()) {
+ match ModuleSpecifier::from_file_path(path.to_path_buf().clean()) {
Ok(specifier) => Ok(specifier),
Err(()) => bail!("Could not convert '{}' to url.", path.display()),
}