mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
chore: update to Rust 1.66.0 (#17078)
This commit is contained in:
parent
f2c9cc500c
commit
f46df3e359
37 changed files with 84 additions and 84 deletions
|
@ -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()),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue