diff options
Diffstat (limited to 'ext/web/lib.rs')
-rw-r--r-- | ext/web/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<ByteString, AnyError> { fn forgiving_base64_decode_inplace( input: &mut [u8], ) -> Result<usize, AnyError> { - let error: _ = + let error = || DomExceptionInvalidCharacterError::new("Failed to decode base64"); let decoded = base64_simd::forgiving_decode_inplace(input).map_err(|_| error())?; |