summaryrefslogtreecommitdiff
path: root/core/module_specifier.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 /core/module_specifier.rs
parentf2c9cc500c84a3c6051823cd3ae33d6b4c1f6266 (diff)
chore: update to Rust 1.66.0 (#17078)
Diffstat (limited to 'core/module_specifier.rs')
-rw-r--r--core/module_specifier.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/module_specifier.rs b/core/module_specifier.rs
index 3f329f53f..4727ff2cb 100644
--- a/core/module_specifier.rs
+++ b/core/module_specifier.rs
@@ -141,7 +141,7 @@ pub fn resolve_path(
let path = current_dir()
.map_err(|_| ModuleResolutionError::InvalidPath(path_str.into()))?
.join(path_str);
- let path = normalize_path(&path);
+ let path = normalize_path(path);
Url::from_file_path(path.clone())
.map_err(|()| ModuleResolutionError::InvalidPath(path))
}