diff options
Diffstat (limited to 'ext/web/lib.rs')
-rw-r--r-- | ext/web/lib.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ext/web/lib.rs b/ext/web/lib.rs index 6c278cbb0..17133e156 100644 --- a/ext/web/lib.rs +++ b/ext/web/lib.rs @@ -123,7 +123,6 @@ pub fn init<P: TimersPermission + 'static>( fn op_base64_decode( _: &mut OpState, input: String, - _: (), ) -> Result<ZeroCopyBuf, AnyError> { let mut input = input.into_bytes(); input.retain(|c| !c.is_ascii_whitespace()); @@ -134,7 +133,6 @@ fn op_base64_decode( fn op_base64_atob( _: &mut OpState, s: ByteString, - _: (), ) -> Result<ByteString, AnyError> { let mut s = s.0; s.retain(|c| !c.is_ascii_whitespace()); @@ -188,17 +186,12 @@ fn b64_decode(input: &[u8]) -> Result<Vec<u8>, AnyError> { fn op_base64_encode( _: &mut OpState, s: ZeroCopyBuf, - _: (), ) -> Result<String, AnyError> { Ok(b64_encode(&s)) } #[op] -fn op_base64_btoa( - _: &mut OpState, - s: ByteString, - _: (), -) -> Result<String, AnyError> { +fn op_base64_btoa(_: &mut OpState, s: ByteString) -> Result<String, AnyError> { Ok(b64_encode(&s)) } @@ -220,7 +213,6 @@ struct DecoderOptions { fn op_encoding_normalize_label( _state: &mut OpState, label: String, - _: (), ) -> Result<String, AnyError> { let encoding = Encoding::for_label_no_replacement(label.as_bytes()) .ok_or_else(|| { @@ -236,7 +228,6 @@ fn op_encoding_normalize_label( fn op_encoding_new_decoder( state: &mut OpState, options: DecoderOptions, - _: (), ) -> Result<ResourceId, AnyError> { let DecoderOptions { label, |