From 8f00b5542caffd14988b923efe4f066b712d2858 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Fri, 30 Jul 2021 22:03:41 +0900 Subject: chore: upgrade Rust to 1.54.0 (#11554) --- core/bindings.rs | 2 +- core/internal.d.ts | 15 +++++---------- core/module_specifier.rs | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) (limited to 'core') diff --git a/core/bindings.rs b/core/bindings.rs index 9ece23276..af8560c6a 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -690,7 +690,7 @@ fn decode( // - https://encoding.spec.whatwg.org/#dom-textdecoder-decode // - https://github.com/denoland/deno/issues/6649 // - https://github.com/v8/v8/blob/d68fb4733e39525f9ff0a9222107c02c28096e2a/include/v8.h#L3277-L3278 - match v8::String::new_from_utf8(scope, &buf, v8::NewStringType::Normal) { + match v8::String::new_from_utf8(scope, buf, v8::NewStringType::Normal) { Some(text) => rv.set(text.into()), None => { let msg = v8::String::new(scope, "string too long").unwrap(); diff --git a/core/internal.d.ts b/core/internal.d.ts index 6697f4715..593136722 100644 --- a/core/internal.d.ts +++ b/core/internal.d.ts @@ -48,21 +48,16 @@ declare namespace __bootstrap { */ declare namespace primordials { type UncurryThis unknown> = - ( - self: ThisParameterType, - ...args: Parameters - ) => ReturnType; + (self: ThisParameterType, ...args: Parameters) => ReturnType; type UncurryThisStaticApply< T extends (this: unknown, ...args: unknown[]) => unknown, > = (self: ThisParameterType, args: Parameters) => ReturnType; type StaticApply unknown> = - ( - args: Parameters, - ) => ReturnType; + (args: Parameters) => ReturnType; - export function uncurryThis< - T extends (...args: unknown[]) => unknown, - >(fn: T): (self: ThisType, ...args: Parameters) => ReturnType; + export function uncurryThis unknown>( + fn: T, + ): (self: ThisType, ...args: Parameters) => ReturnType; export function makeSafe( unsafe: NewableFunction, safe: T, diff --git a/core/module_specifier.rs b/core/module_specifier.rs index 4de875073..831a0f2ac 100644 --- a/core/module_specifier.rs +++ b/core/module_specifier.rs @@ -96,7 +96,7 @@ pub fn resolve_import( } else { Url::parse(base).map_err(InvalidBaseUrl)? }; - base.join(&specifier).map_err(InvalidUrl)? + base.join(specifier).map_err(InvalidUrl)? } // If parsing the specifier as a URL failed for a different reason than -- cgit v1.2.3