From 5c55f2b4fb9f386d5589e4cbd4c513ecb1bae50b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 5 Jun 2023 20:35:39 -0400 Subject: chore: upgrade to Rust 1.70.0 (#19345) Co-authored-by: linbingquan <695601626@qq.com> --- ext/web/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/web') diff --git a/ext/web/lib.rs b/ext/web/lib.rs index adbc9f262..b1e0dd5d8 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -142,7 +142,7 @@ fn op_base64_atob(mut s: ByteString) -> Result { fn forgiving_base64_decode_inplace( input: &mut [u8], ) -> Result { - let error: _ = + let error = || DomExceptionInvalidCharacterError::new("Failed to decode base64"); let decoded = base64_simd::forgiving_decode_inplace(input).map_err(|_| error())?; -- cgit v1.2.3