mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
1a1faff2f6
commit
f5840bdcd3
148 changed files with 576 additions and 681 deletions
|
@ -131,8 +131,7 @@ impl NpmPackageVersionInfo {
|
|||
let version_req =
|
||||
NpmVersionReq::parse(&version_req).with_context(|| {
|
||||
format!(
|
||||
"error parsing version requirement for dependency: {}@{}",
|
||||
bare_specifier, version_req
|
||||
"error parsing version requirement for dependency: {bare_specifier}@{version_req}"
|
||||
)
|
||||
})?;
|
||||
Ok(NpmDependencyEntry {
|
||||
|
@ -369,10 +368,7 @@ impl RealNpmRegistryApiInner {
|
|||
Ok(value) => value,
|
||||
Err(err) => {
|
||||
if cfg!(debug_assertions) {
|
||||
panic!(
|
||||
"error loading cached npm package info for {}: {:#}",
|
||||
name, err
|
||||
);
|
||||
panic!("error loading cached npm package info for {name}: {err:#}");
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
@ -415,10 +411,7 @@ impl RealNpmRegistryApiInner {
|
|||
self.save_package_info_to_file_cache_result(name, package_info)
|
||||
{
|
||||
if cfg!(debug_assertions) {
|
||||
panic!(
|
||||
"error saving cached npm package info for {}: {:#}",
|
||||
name, err
|
||||
);
|
||||
panic!("error saving cached npm package info for {name}: {err:#}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -443,8 +436,7 @@ impl RealNpmRegistryApiInner {
|
|||
return Err(custom_error(
|
||||
"NotCached",
|
||||
format!(
|
||||
"An npm specifier not found in cache: \"{}\", --cached-only is specified.",
|
||||
name
|
||||
"An npm specifier not found in cache: \"{name}\", --cached-only is specified."
|
||||
)
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue