diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2021-07-30 22:03:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 15:03:41 +0200 |
commit | 8f00b5542caffd14988b923efe4f066b712d2858 (patch) | |
tree | e56ebefb0b73a2205bc482a0a6f55e87bd35a92b /core/bindings.rs | |
parent | c909faf9e6cd2964398da7c0852d0229cdd1a22b (diff) |
chore: upgrade Rust to 1.54.0 (#11554)
Diffstat (limited to 'core/bindings.rs')
-rw-r--r-- | core/bindings.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |